Hi All,
Been trying to figure out a solution to begin coding an image hosting script. The don't want to store images into the MySQL database so I'm looking at a decent filing system. I've seen a few image hosting apps which breaks down the user's ID # to formulate a directory structure for any images uploaded. I've also seen ways of using a person's username like p/e/t/peterpan_image.jpg.
Is that the best way to organize what could potentially be thousands if not tens of thousands of media files? Would it be better to use the username or ID # concept? How many levels should I go down?
Which method do you think would work best? Does it matter?
- User ID # 1024..... 1/0/2/1024_img.jpg
- Username PeterPan... p/e/t/peterpan_img.jpg
Each image will have a unique ID.
Any thoughts or past experiences are gladly appreciated. If anyone knows of any open source scripts that use either method, any URLs would be great.
Best,
Cent.