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 8295271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:31:51+00:00 2026-06-08T14:31:51+00:00

Right, this is what I am trying to do, A user will visit my

  • 0

Right, this is what I am trying to do,

A user will visit my website to upload media content, IE, images for an image gallery or videos. I will store this media onto my website and then return an access code to the user so they can access the media through the access code.

This is my question,

I am looking into structuring the folders as efficiently as possible to store the uploaded content, there are two types of media they can upload, Video and Image, so I have the two parent folders,

  • Video
  • Image

what I am concerned about, is that is it a good idea to place all the video/image content within one folder, or should I have sub folders ?

Also, a user will typically upload more than one image, say 5-10, and when requested to view these images they will be returned in an image gallery format, so I was thinking to have a sub folder with the image Gallery’s ID storing all the images for that image gallery, is this efficient?

Are there any folder structures to follow for storing uploaded data?

  • 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-06-08T14:31:54+00:00Added an answer on June 8, 2026 at 2:31 pm

    I came across this structure in a place I worked. And I’ve been using it wherever possible ever since.

    (Assuming the folders aren’t visible to your users) Give each user (gallery) a guid. Then create a directory path using the first 3 characters of the guid like so:

    //root/9/1/8/91894963-0075-4b4c-b2a3-ce99f9780035/<user [ABC1]'s folder>
    //root/6/5/6/656744e6-19e1-49aa-9ae6-156e4be61282/<user [ABC2]'s folder>
    //root/6/5/b/65ba9120-93a9-4d28-ba4e-ca8a2a53d4e6/<user [ABC3]'s folder>
    

    This limits the total number of folders in each parent to 16 and ensures you never have many folders in the ‘destination’ folder and also allows quick retrieval of the path when the guid is known.

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

Sidebar

Related Questions

Right now I'm trying desperately to get @font-face to work in my website. This
Trying to do an image caption but can't figure the this object selector right
I am trying to create a game, where the user will see an image,
Right now I'm trying this: int a = round(n); where n is a double
I'm trying to make Gzip compression work on xampp, right now this is in
I don't know what's wrong. It seems like I'm doing this right. I'm trying
Im trying to get this working but for some reason it's just not right.
I'm trying to do this counter for cookies. The cookies give the right values
Right, I'm trying to implement this game, http://www.helicoptergame.net/ , but I'm struggling with the
Has anyone met this error? Right now i am trying to do switch from

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.