To track or not to track user created images for display in a dynamic website?

Posted by Question Overflow on Pro Webmasters See other posts from Pro Webmasters or by Question Overflow
Published on 2012-09-19T10:46:47Z Indexed on 2012/09/19 15:54 UTC
Read the original article Hit count: 200

Filed under:

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?

© Pro Webmasters or respective owner

Related posts about image-hosting