Reply to Re: file upload problem

Your name:

Reply:


Posted by G0ng on 10/23/62 11:40

Jeremy Deuel wrote:
> 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 (?).

How this can be done? Two forms with one submit? and how do I get the
data? on only one POST?

[Back to original 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

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