Best Practices: Organizing File Uploads
Hi I'm programming a site that handles alot of user uploads, I was wondering what are some of the best practices for organizing lot of user uploaded files on a server.
For example how to organize folders etc.
Well, however is most convenient and makes most sense for your application, of course. Just remember that it's not a good idea to store more than 10 thousand files on Linux servers in a single folder, it's even better to simply not store more than thousand per folder.
To do this, you should simply create subfolders that minimize the risk of such a large number of files. You can separate them in subfolders (for example, storing a file alphabet.pdf in /alp/ subfolder) or store them based on creation dates.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)