On Tuesday 02 April 2002 22:44, Schmidt, Carl wrote:
> I'm uploading a file to a web site using forms.  I'm trying to narrow down
> if the problem is the connection is timing out on file upload, or if I'm
> exceeding a web host imposed limit on file upload size.  I've found the
> server i'm running on has:
> upload_max_filesize 2M
> post_max_size 8M
> Apache connection: 300 sec
>
> 1.  I was assuming that post_max_size (since I'm posting the file, not
> uploading via ftp) takes precedence, so I should be able to upload up to
> 8M. 

My understanding of those settings is that:

"upload_max_filesize" determines the maximum size of a file and 
"post_max_size" determines the maximum size of the post which is all the bits 
of a form -- all the inputs, the textareas, the files etc.

Thus the settings you have above would limit your max file size to 2MB.

> 2.  I'm uploading via a T1, so there is no reason why the apache
> connection should timeout
> 3.  However, no matter what I do, it seems that the file upload times out
> after about 30 seconds for files below 2M.
>
> So there are 2 things I need to test:
> 1.  Is it that the upload_max_filesize is really what is limiting the
> upload and my assumption is wrong? OR
> 2.  Is it just a coincedence that anything over 2M takes over 30 sec to
> upload, and that the conenction times out after 30 seconds but the server
> _could_ handle more?

Try increasing the "upload_max_filesize" and see what happens





-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
You own a dog, but you can only feed a cat.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to