I have currently got imagepaths stored within the database and image files stored in a folder which corresponds to each imagepath.
I got an admin section within my website and I am considering the ability to an admin user to upload an image. What do you advice? Is it possible to upload an image file to a folder as well as storing the image path into the database?
If I was to do it like that, how do I make it so that the image path uploaded to the database is the same as the other imagepaths (as in the same directories) except for the actual name part of the imagepath.
Thanks