To track or not to track user created images for display in a dynamic website?
- by Question Overflow
I have a website that allows user to upload and display images.
Currently, I am not using a database to track these user images. A folder having the user id as the folder name is created for each user and under each folder, the image files are labelled numerically with filenames ranging from 01.jpg to 20.jpg. Up to 20 such images can be displayed on each user page.
I am using javascript to hide these images in case of any of them is absent. I have seen many websites having user images with unique random filenames and possibly tracking these files with a database
Since obscurity is not something that I need for these web accessible images, is there any reason why I should track them with a DB?
I am not sure if a reduction of 404 errors is a good enough reason to justify the added complexity of maintaining a database or can anyone enlighten me?