Jump to content

Recommended Posts

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!
Link to comment
https://forums.phpfreaks.com/topic/4865-image-upload-directory-help/
Share on other sites

[!--quoteo(post=354622:date=Mar 13 2006, 02:40 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 13 2006, 02:40 PM) [snapback]354622[/snapback][/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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.