Folder Structure for storing millions of images?
I am building a site that is looking at Millions of photos being uploaded easily (with 3 thumbnails each for each image uploaded) and I need to find the best method for storing all these images. I've searched and found examples of images stored as hashes.... for example... If I upload, coolparty.jpg, my script would convert it to an Md5 hash resulting in.. dcehwd8y4fcf42wduasdha.jpg and that's stored in /dc/eh/wd/dcehwd8y4fcf42wduasdha.jpg but for the 3 thumbnails I don't know how to store them QUESTIONS.. Is this the correct way to store these images? How would I store thumbnails? In PHP what