I will look into the SVN Version, I just downloaded it.
xwero - 25 February 2009 09:24 AM
I think it’s best to store the file_name because that is the name used to store your file. Say if you started to encrypt the filename storing the raw_name, that will always lead to non existing files. raw_name and orig_name should be considered as additional data.
If I would store the entire filename I would always have to split it up and extract the extension because I create four different sized versions of the uploaded images and differentiate between them by adding the width (e.g. filename_400.jpg) when I include them for specific purposes.
So everytime I use an image I would have to query the ‘file_name’ from the database, split it, add the _WIDTH part, and put it back together. Not really effective.