Page 1 of 1

File Upload Question

Posted: Sat Oct 27, 2007 10:39 am
by iknownothing
Hey Guys,

A website I am currently building, uses many documents, accessible by the user. Each document is recorded in the database upon upload to the server. Along with the file location, the database also stores the page it is to be viewed on etc.

The question is, the client has approximately 150 files to be uploaded to the various sections of the site, each about 200kb-600kb. Being that they are all separate files, no more than 1mb each, will PHP have a problem uploading these files from a central "Multiple File Upload" page, all at one time?


Thanks.

Posted: Sat Oct 27, 2007 10:43 am
by feyd
Provided settings will fit capacity and the server's garbage collector isn't over zealous while PHP waits for all the files to finish uploading... it shouldn't be a problem. If the files are individually selected then they technically could be uploaded individually too using some trickery (ajax-ish uploads.)

Posted: Sat Oct 27, 2007 10:47 am
by iknownothing
So PHP's max file setting won't come into play because it sees each file individually?

Posted: Sat Oct 27, 2007 11:09 am
by feyd
You'll have to test that.

Posted: Sat Oct 27, 2007 1:18 pm
by s.dot
You may also have to look into

max_execution_time
max_input_time
memory_limit
post_max_size (not sure if this applies to uploaded files)