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)

Thumbs up

Re: Check for existing images

Chmod 777? are you living in the 90's or what... haha.
i dont know what is better, do this by dB or text file (.txt or .cvs, etc). Anyway, i know what are you talking about.

We have to look up the better way to do this.

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!