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]
|