File Upload Question

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

File Upload Question

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.)
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post by iknownothing »

So PHP's max file setting won't come into play because it sees each file individually?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You'll have to test that.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply