Jump to content

storing images in multiple folders or just one folder


dharm

Recommended Posts

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!

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.