Topic: Check for existing images
The script should check to see if the images that a person is trying to upload isn't already on there...
What it does now, is simply rename the new file... causing the same image to be uploaded multiple times...
This should be fairly easy to do and be made into a priority!
Create a txt file (chmod 777) with the images filenames and their corresponding MD5 hashes of files that are uploaded (create the hash BEFORE the file is uploaded and add the hash in the txt file => no database required)
Then check the txt file whenever someone uploads an image to see if the MD5 hash is already in there or not.
....
Not having this check, will open the script up to malicious persons, replacing the existing images with images of their own.
Last edited by wout000 (2009-03-18 14:53:49)
