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

  • Home
  • SEARCH
  • 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 383603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:17:56+00:00 2026-05-12T15:17:56+00:00

I am doing file-upload for a web-application (running on unix/linux). I’m wondering if there

  • 0

I am doing file-upload for a web-application (running on unix/linux). I’m wondering if there would be a concern if I planned to create a new directory for each file upload? This is the out-of-the-box approach for the Ruby on Rails plugin “paperclip”. I debating what the trade-offs are, or whether perhaps it’s just not a concern, if deploying on a linux/unix environment.

The options would seem to be:

  1. One folder per file attachment – per how paperclip seems to work out of the box
  2. One folder per user perhaps (i.e. if web service has multiple users with their own account) – and then one would need to add some uniqueness to the filename (perhaps the model ID)
  3. Put all attachments in one folder – but this is probably going too far the other way

Question – Should I be concerned about the number of directories being created? Is this an issue for an O/S if the service was popular? Any advice for a website that was allowing users with their own separate account to upload files, what structure might be good with respect to storing them? (I guess I’ve discounted the concept of storing files in mysql.)

Thanks

  • 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-12T15:17:56+00:00Added an answer on May 12, 2026 at 3:17 pm

    Assuming Ext3 formatted drive under Linux (the most common).

    From (http://en.wikipedia.org/wiki/Ext3)

    “There is a limit of 31998 sub-directories per one directory, stemming from its limit of 32000 links per inode.[13]”

    So, if you’ll hit the limit of 32k uploads, which isn’t that high, your application will fail.

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

Sidebar

Related Questions

I am currently using php and ajax file upload to develop a web application.
I have a web application that needs to take a file upload from the
I have a upload excel file on my web application. When the file is
im doing an application in which im transfering file through FTP.i succesfully done all
I had a file upload that was uploading to a folder in the web
How can I ensure that if I am doing a HTTP file upload (e.g.
I'm creating a web application that will involve habitual file uploading and retrieval (PDFs,
I will create an ASP.NET Web Application like this; Users can login their own
In one of my web application I have to implement a image upload. But
I'm writing an obj-c app and would like to upload a binary file a

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.