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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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