You are here: file upload not saving file « PHP Programming Language « IT news, forums, messages
file upload not saving file

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация