Is it a good option to store uploaded images, for a website that takes images of people’s items, in a directories by date? E.G: A file uploaded today would be stored SOMEDIRPATH/2011/12/21/GUID.img – I don’t want to overload a directory with a bunch of images and I want to plan for a site where any number of people could be uploading images. This is on a Windows NTFS file system.
Also note that I will save the path in the database.
I have checked and this is not a duplicate question. No answers exist for this question.
I personally consider this a good idea. I use it and have never had a problem with it.
One of concerns may be the security, since you are making it possible to predict the physical path of the file on the server, but since it’s an image, not a credit card info, and you have a well-configured web server, that prohibits directory browsing, you are fine with the approach.