Hi all,

A script of mine is having problems file uploads over 500k. I've read the documentation and have written scripts previously that uploaded large files without problems. I'm sure there's something pesky that I've missed, but I can't figure out what it is. The script behaves the same way on a couple of servers with different versions of PHP 4 and Apache 1.3 under Linux and Mac OS X.

Here's what happens... I have a script that allows uploading of PDF files. Below a certain size (504k) Everything works as expected. Above that size, (508k) The script returns a blank value for 'tmp_name' and 'type', and returns 0 for the 'size' parameter. The 'name' parameter is passed successfully with the file's name. There are no errors generated, it just fails to work.

I've used php_value to set values in httpd.conf for the directory where the script lives. Here they are:

LimitRequestBody 0
php_value memory_limit 20M
php_value post_max_size 20M
php_value upload_max_file_size 20M
php_value max_execution_time 900
php_value max_input_time 60

(File upload is on as well, obviously) I had the values set somewhat lower at first (8M for the first three values) with the same results.

I have no idea where the apparent 500k choke point is coming from... Any ideas?

Thanks in advance,
Gawain

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



Reply via email to