Forum Moderators: open
like /uploaded_images/
Then you store the name of the image in the database.
¦ image_name ¦
¦ example.jpg ¦
If you want to have multiple directories you can store the directory name as well
¦ directory_name ¦ image_name ¦
¦ images ¦ example.jpg ¦
¦ private_image ¦ example321.jpg ¦
this way you only store the location and name of the image which is basically a "map" to where the images actually live.