I have a site where members can upload small files 50k or under to an account dirrectory. I'd like to be able to automatically check to see if a file they are uploading is the exact same a file already present with a different name. is this possible to do? (cause if the file has a diff name will it come up with a diff crc)
bump
i just want to see if the files are the same automatically regardless of there filename
not likely, so you want to check like a word doc, or image is the same as in content, and not filename, not likely, sorry 🙁
yes... just like a checksum on the file so i can compare users files and keep people from uploading the same file with different names.
[resolved] nvm mind i found a way to make it work with crc32()
If i where you, i would take the size of the file, very exact, and after that take the height and width, if both are the same, there is a chance for one in a million that the tow pictures not are the same...
Truti