Log in

View Full Version : Where to store member's photos?


Guest190829
08-03-2005, 05:11 AM
Well for vbspace, there's going to be a basic gallery where each member can have up to 1-x pictures (decided by admin)...I'm not asking how to upload the images but where to store them? I want the most optmized way, and I don't know which solution is best. I think a file system is the best way to go, but where would I store the images directory-wise? In one large folder, or something else?

Any suggestions would be greatly appreciated.

Logikos
08-03-2005, 06:25 AM
Well for vbspace, there's going to be a basic gallery where each member can have up to 1-x pictures (decided by admin)...I'm not asking how to upload the images but where to store them? I want the most optmized way, and I don't know which solution is best. I think a file system is the best way to go, but where would I store the images directory-wise? In one large folder, or something else?

Any suggestions would be greatly appreciated.

Maybe a option for fileupload/database storage?

m0nde
08-03-2005, 07:00 AM
Database storage as a blob is usually faster, but file storage is easier to manage and it won't take up as much CPU time in terms of database access.
Store them all in a folder with sub-folders by userid if each user has more than one picture.

storagefolder/1
storagefolder/2
storagefolder/3
...

If there is only one picture per user, then just store them all in one folder.

- Sid

Guest190829
08-03-2005, 05:13 PM
^^ That's what I was thinking of doing...Thanks. Any other suggestions?