Posted by zorro on 12/18/42 11:48
Hello,
When I upload an image to the server I get the message:
Warning: Only -1 bytes were written, expected to write 547
The server phpinfo lists :
file_uploads On
upload_max_filesize 2M
upload_tmp_dir /tmp
PHP Version 4.4.1
so I created a directory named tmp at the root of my "server space" and
gave it chmod 777, but still the same error occurs. This is the result
of print_r($_FILES['myfile']) :
Array ( [name] => 2.jpg [type] => [tmp_name] => [error] => 7 [size] =>
0 )
Error 7 in the PHP manual is :
UPLOAD_ERR_CANT_WRITE
Value: 7; Failed to write file to disk. Introduced in PHP 5.1.0.
Any ideas what is wrong?
Navigation:
[Reply to this message]
|