Jump to content


Photo

Image Upload Directory help


  • Please log in to reply
2 replies to this topic

#1 vixed

vixed
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 March 2006 - 07:31 PM

Hi,

I'm attempting my script a member community site for fun. I'm now working on the image upload part of the site. I found a great tutorial on how to create thumbnails after an image has been uploaded and everything works great.

I have set "/photos/" as the directory for images uploaded, which means all images my members upload will be stored in that directory. Example: [a href=\"http://www.mysite.com/photos/\" target=\"_blank\"]http://www.mysite.com/photos/[/a]

If I plan to have a large userbase, is this a smart move?

I've looked at other member sites and they seem to use something similar to...

[a href=\"http://img1.somewebsite.com/060210/19/image.jpg\" target=\"_blank\"]http://img1.somewebsite.com/060210/19/image.jpg[/a]

or

[a href=\"http://images.somewebsite.com/photos/452/image.jpg\" target=\"_blank\"]http://images.somewebsite.com/photos/452/image.jpg[/a]


What's the purpose of using multiple directories for images? Why not just use one directory to store all images like "/photos/"?

Can someone clarify this for me? I need the most logical and efficient way to handle these photos.



Help is appreciated!


#2 keeB

keeB
  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 13 March 2006 - 07:40 PM

Some people will sort photo's by userid.. some by section of the site the photo was uploaded.. or the module, or the date.. it all depends on what you need in your future and short term..

Come visit my site to see my latest projects
http://nick.stinemates.org/wordpress/


#3 vixed

vixed
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 13 March 2006 - 08:17 PM

[!--quoteo(post=354622:date=Mar 13 2006, 02:40 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 13 2006, 02:40 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Some people will sort photo's by userid.. some by section of the site the photo was uploaded.. or the module, or the date.. it all depends on what you need in your future and short term..
[/quote]


ahhh i gotcha. Thanks for the input.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users