lightnb
06-05-2008, 05:39 PM
What are the best procedures and practices for user file uploads (eg. pictures, videos, and documents)?
Specifically, what folder structure should you use on your server? Should all users have their own dynamically generated folders, or should all the files be placed in a generic "UserUploads" folder?
What about file renaming, conventions, etc? Social Network Sites rename their uploaded files to something that looks like an MD5 hash- What is the benefit of this, what is it a hash of, and how do they avoid duplicate hashes?
Specifically, what folder structure should you use on your server? Should all users have their own dynamically generated folders, or should all the files be placed in a generic "UserUploads" folder?
What about file renaming, conventions, etc? Social Network Sites rename their uploaded files to something that looks like an MD5 hash- What is the benefit of this, what is it a hash of, and how do they avoid duplicate hashes?