Unanswered: File Uploading conventions - renaming vs keeping original filename - opinions?
The CMS I'm building has a section where the user can upload images. In the front end an image appears within a project section. Each project can have multiple images.
I'm all set on the database and the uploading part. What I'm debating still is whether I should
1) keep the original filename on the server, or
2) rename the filename to something like : "img_categoryID_imageID.jpg"
3) keep the original filename but append the time/date to avoid accidental overwritings by the user.
I wanted to hear a few opinions on this subject. I'm not quite sure which way to go and wanted to hear if there are obvious reasons to go with either one.
I could instruct the admins to follow certain naming convention rules before uploading the files in which case I could go with 1) or 3)... I'm tending to go with that but I wanted to hear from people with real world experience since this is my first project of this kind.
Quick note before I log off (i've only read the post briefly).
ALWAYS rename the filenames of the images when they are uploaded. It's not safe to let the user name their own files
by all means let them have a database field to input the "name" of their photo, but certainly don't let them utilise their own naming system.