Forum Moderators: coopster
The form is sending multiple files so can take a long time to send but it can send lots of files ok.
I don't understand what could be making it not work on certain occasions.
Take a look at the handling file uploads [php.net] section of the PHP documentation, and look at the directives associated with file uploads and make sure yours are set to a reasonable value. Also, with each unsuccessful file upload I like to log to the error log (error_log) the value of the error associated with that file upload. It will help you determine where things are going wrong in the long-run.
So see if you can't pin-point the problem first by looking towards your own server configuration, and then if the problem still happens occasionally it might even be you (the client) and your connection to your server. If you can separate the task of uploading files somehow, though, perhaps uploading them one at a time or by using another technology such as a Java Applet, then you will probably have more success with something like this.
so can take a long time to send
Immediately after you get one of these, did you check your error logs? You may see "memory limit exhausted" or it's exceeding the upload size. Alternatively the browser could just be timing out.
Experiences with managing large file uploads [webmasterworld.com]
Another way around this is to use fork() in an exec command or pcntl_fork() if the extensions are installed. This may still break; if you're encountering a memory or upload limit error the child process could die.