| 
 Posted by Jeremy Deuel on 02/17/06 13:13 
In article <dt438i$82a$1@volcano1.grnet.gr>, 
 G0ng <hkosmidi@softnet.tuc.gr> wrote: 
 
> 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? 
 
 
Make two forms, with one upload per form and a javascript, that sends  
both forms at once. 
 
IMHO per form only one file can be uploaded (?).
 
  
Navigation:
[Reply to this message] 
 |