trouble uploading more than 500 bytes...
| From: | Karl St-Jacques | Date: | Sun, 12 Oct 2008 02:31:45 +0000 |
| Subject: | trouble uploading more than 500 bytes... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-281736@lists.php.net to get a copy of this message | ||
Hello,
I have trouble uploading files to a server. Actually I can't upload more than 500 bytes or so.
Here's a quick print_r of the $_FILES
[_FILES] => Array( [avatar] => Array ( [name] => index.html [type] => text/html
[tmp_name] => /tmp/phpRbmXK5 [error] => 0 [size] => 505 ))
If I try bigger file (540 bytes or 2mb) it's simply return this.
[_FILES] => Array([avatar] => Array( [name] => ajax-loader.gif [type] => [tmp_name]
=> [error] => 3 [size] => 0)
)
error 3 is partial files sended. (By the way, there's no processing, only a print_r();
So here's my setup from the php.ini
PHP Version 5.2.4-2ubuntu5.3
max_execution_time 1000 1000
max_input_nesting_level 64 64
max_input_time 1000 1000
memory_limit 999M 999M
post_max_size 200M 200M
upload_max_filesize 200M 200M
upload_tmp_dir no value no value
I run Apache/2.2.8
I checked the /tmp folder. it's empty, even if uploading really big file, same for /var/tmp.
the permission seems to be ok (chmod 777).
So, I'm pretty clueless about that one.
Anyone have any insight about this ?
Thanks,
Karl.
_________________________________________________________________