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

Posted by G0ng on 02/17/06 10:58

Hello. I have a form with two input file fields for uploading file:

<form name="mynews" action="news.php?action=update&add=<?php print
$id;?>" method="post" enctype="multipart/form-data">

<input type="file" name="file1" size="20">
<input type="file" name="file2" size="20">

When I post I do:
print_r($_FILES);

this is the output:
Array ( [file] => Array ( [name] => [type] => [tmp_name] => [error] => 4
[size] => 0 ) [file1] => Array ( [name] => PlhroforikhMetaptuxiako.pdf
[type] => application/pdf [tmp_name] => /tmp/phpIIYUYT [error] => 0
[size] => 48755 ) [file2] => Array ( [name] => [type] => [tmp_name] =>
[error] => 4 [size] => 0 ) )

The seconf file is never uploaded no matter what I tried.
Upload_file_size is 8MB which is ok for both files.

what else can I check?

 

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

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