I'm writing a membership system, that needs to hold a photo for each member, so I ask the user to upload a photo. This works fine..... UNTIL...
I now decided to change the photo name to be the unique identifier for each member, so there is no naming issues (and I will only be holding ONE photo for each member anyway).
I'm getting problems when I upload a second photo to OVERWRITE the existing photo... the file uploads ok, and gets stored in the 'uploads' folder, but the form does not refresh with the new image - EVER!!! I can close down the browser, close down the server, delete the file from the 'uploads' folder, but still the ORIGINAL photo gets displayed!
Maybe I've misunderstood the renaming process (code which I find strangely gets executed TWICE, once on pressing the 'upload' button, and once pressing the 'save' button).
I'm not sure if the attached screenshots help, but this shows I originally uploaded (and renamed) a file containing the 'image' of the word TWO - I then went back into the form and uploaded an file with the image of the word THREE - which is NOW the file stored in the 'upload' folder - however the image PREVIOUSLY uploaded is being displayed on the form.
(usually by this point, the exercise of trying to define the problem shows me my glaring error - but not in this case!)
Any help would be appreciated..
Thanks
Bill
[attachment deleted by admin]