I am writing a small image gallery using php. I initially thought that every upload will have an entry in a database table and album hierarchy will be created in database and not file system. But now I think file system will be better. But database has advantage of having description for each file. I am confused. Please let me know your views.
Why do you think that a filesystem is better?
I think that if the number of images you are using is not really big, a database is better.
Another pre is that in a database you can manage your system more easily. You can list all images and delete or add if you want.
I thought it would be better because I don't have to synchronize file data with database -- like deleting database entry when a image is deleted, creating new entry in db when image is uploaded, etc.