I am creating a website that let the users to upload their images, i planned to create a directory for every user so that user upload their images to their directory and their paths are stored in MySQL database.
This is the structure for John which saves the data in three different sub-directories and john directory is the main directory.
John/ - main directory where john image will store
small/ - sub-directory for small re-sized image
medium/ - sub-directory for medium re-sized image
big/ - sub-directory for Original re-sized image
The problem that now i am thinking that i will face in the future is that what if the disk got full. How the new images will be stored in john's directory, is it the end of the line or should i use any other way of storing the images.
Thanks in advance.
I have tried this Image upload storage strategies but it also have some problems.