Upload files

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have a PHP (version 5) site that allows uploading of files into our
Solaris server using Apache.  I currently allow the user to upload up
to 10 files at once.  If users upload files as big as 20 mb or more
slows the upload process down.  Should I just allow one file upload at
a time for better performance?  I was wondering how other PHP
developers handle this?

Re: Upload files

Quoted text here. Click to load it

No, it'll actually take **slightly** longer to transfer the files
seperately. However it might make error recovery more painless if you
force smaller chunks and by the sounds of things you may be reaching
the stage where timeouts become significant.


Re: Upload files

francan escribió:
Quoted text here. Click to load it

The problem is the total upload size, not the number of files, and
that's very difficult to control from the server: using plain HTML
there's no way to tell the browser not to upload more than X MB.

Sites that do heavy uploading use client-side tricks that range from
JavaScript to Flash or even Java.

-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com

Re: Upload files

Álvaro G. Vicario wrote:
Quoted text here. Click to load it
Don't let Jerry hear you saying that. He knows, because he is always
right, that there is nothing javascript , Flash or Java can do that cant
be done (better) with php.

Re: Upload files

The Natural Philosopher wrote:
Quoted text here. Click to load it

NP you need to grow up or shut up.  We (this NG), does not need you
fouling up another thread with remarks that are aimed at causing
negative responses from another (Jerry).  If someone wants to post a
comment that you think is wrong, you have every option to reply, but to
pick another fight is flat out wrong and non-productive.  Take it to
E-Mail where we don't have to hear you, PLEASE!


Re: Upload files

Scott Johnson wrote:
Quoted text here. Click to load it


Actually, I wasn't going to respond to his inane ranting, because it's
not what I've ever said.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Site Timeline