Forum Moderators: coopster
-- everything works well and correctly with this ---
I then wrote an Update image form, that is to update the image record in the database as any other UPDATE function does, and then using that same record id, replace the image on the server.
My understanding was (I read it somewhere but can't recall now where it was) that if you upload a file to the server and there is another file there of the same name, it would automatically overwrite the file, however, this does not seem to be the case. - the database UPDATE does work correctly however.
One note about both the add and the update script - both chmod the file to 0644 after it is uploaded.
Can anyone shed a bit of light on how I can make this happen?
You would think I'd have thought of that first BEFORE posting...
...However...
I need to write a script to DELETE a file next... "Fabricator" ... is unlink() the correct code for this?
Also.. thanks so much for the quick reply...
R