Jump to content

managing user uploaded files


freelance84

Recommended Posts

 

I'm starting a new project which will involve its members being able to upload images documents and pdf's. Some of the files may at times be in excess of 15mb.

 

What is the best way of going about organising this?

 

At a first thought i will be separating the different file types into different folders on the server. But is there a limit to the number of files that can be stored in any one folder? Or is there a point when the number of files within the folder mean searching the said folder becomes slow?

Link to comment
https://forums.phpfreaks.com/topic/238506-managing-user-uploaded-files/
Share on other sites

But is there a limit to the number of files that can be stored in any one folder?

No.

 

Or is there a point when the number of files within the folder mean searching the said folder becomes slow?

If you're only searching for file name, no.

You should store the file name, details, author and location in a mysql table and then when someone searches for a file - search the mysql database, return the location from there and return the file using PHP.

Archived

This topic is now archived and is closed to further replies.

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