dharm Posted September 1, 2008 Share Posted September 1, 2008 Hi, can anyone give me some advice? i have a script where a user can upload images to different albums. should i upload the images under one folder or multiple sub directories? e.g. Option 1: images/imgID.jpeg (images/000123001cat.jpeg) Option 2: images/userID/imgID.jpeg (images/000123/001cat.jpeg) Option 3: images/userID/albumID/imgID.jpeg (images/000123/001/cat.jpeg) If i choose option 3 would'nt that make it difficult to manage, say if i wanted to delete or even transfer all images to a different loction, i would need to move all folders too? You advice would be much appreciated.. Thx! Link to comment https://forums.phpfreaks.com/topic/122213-storing-images-in-multiple-folders-or-just-one-folder/ Share on other sites More sharing options...
valtido Posted September 1, 2008 Share Posted September 1, 2008 well it depends if your using the database aswell to know which file goes under which folder you can move a single file or the whole folder if you like. option one is a bit easy to manage once you know the name of the file. you can jus use a database to tell each filename in which album it goes with. Link to comment https://forums.phpfreaks.com/topic/122213-storing-images-in-multiple-folders-or-just-one-folder/#findComment-630950 Share on other sites More sharing options...
dharm Posted September 1, 2008 Author Share Posted September 1, 2008 thank you for a quick response .. at the moment i am storing the path/filename within a database .. but i am willing to change this if necessary Link to comment https://forums.phpfreaks.com/topic/122213-storing-images-in-multiple-folders-or-just-one-folder/#findComment-630957 Share on other sites More sharing options...
JasonLewis Posted September 1, 2008 Share Posted September 1, 2008 All options are good to me. It depends, I like option 3 only because it is organizing the images a lot more. All options have their own advantages/disadvantages. Link to comment https://forums.phpfreaks.com/topic/122213-storing-images-in-multiple-folders-or-just-one-folder/#findComment-630973 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.