Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4547438
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:05:33+00:00 2026-05-21T16:05:33+00:00

I want to separate images stored on server in multiple folders. I’m thinking to

  • 0

I want to separate images stored on server in multiple folders. I’m thinking to create this structure /images/year/month (images/2011/04).
Files names are stored in the database and also create date. Is this a good idea for separate files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T16:05:33+00:00Added an answer on May 21, 2026 at 4:05 pm

    Well, it depends, in part, in what you want to do with them, and what you consider to be a large number.

    As with indexing columns in a database, this scheme may benefit some operations and be detrimental to others.

    For example, in a simple scheme that didn’t have th date available, being able to find an image based on part of its name could end up being a little more difficult since you would have no idea where it would be. I’ve used this scheme for things like log files but that works well since I already knew where it will be:

    /logs/2011/01/2011_01_14.log
    

    and didn’t have to go searching for it.

    Now you’ve solved that particular problem since your database entry holds the date as well so I can’t see any immediate problems with your scheme. That’s not to say there isn’t any 🙂

    My advice would be to do the simplest thing (flat directory format) initially and only worry about it when it becomes a problem. Since you have the dates, it would be a simple matter to move all images, based on that, to separate directories.

    Of course, if you’ve already implemented separate directories, stick with that. Again, it should hopefully be relatively easy to adjust in future if the method is flawed.

    One thing you may want to consider is storing the location (absolute, or relative to a known point) in the database as well, rather than just the date. Then you would use that (rather than an operation on the date) to locate the file.

    This would allow you to totally change the method used for placing files without having to change any of the code that located them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create separate folders for my layouts, like this in my resource
I want to create a multi-cllient client-server program in which the server has separate
I want to create a separate thread that runs its own window. Frankly, the
I want to tweak this code from Apple so that instead of using images
My thumbnail images are stored in amazon s3. I want to merge 2 images
I'm trying to apply multiple effects to images. I've created a separate file to
I have the simplest code that I want to separate in three files: Header
I know that with a large site you would want to separate footers, menus,
I have an asp.net web app. I want to separate out a particular section
Trying to implement 3-layer (not: tier, I just want to separate my project logically,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.