#49196 [Opn->Bgs]: PHP could not understand multi files Web Forms 2.0 request
| From: | jani@php.net | Date: | Sun, 09 Aug 2009 14:51:22 +0000 |
| Subject: | #49196 [Opn->Bgs]: PHP could not understand multi files Web Forms 2.0 request | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140826@lists.php.net to get a copy of this message | ||
ID: 49196
Updated by: jani@php.net
Reported By: mikhail dot v dot gavrilov at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: HTTP related
Operating System: *
PHP Version: 5.3.0
New Comment:
Check the example 3 here:
http://www.php.net/upload
Previous Comments:
------------------------------------------------------------------------
[2009-08-08 08:39:57] mikhail dot v dot gavrilov at gmail dot com
Expected that array $_FILES would be filled, but instead recieve all
content in $_POST array, for example:
Array
(
[file] =>
------------WABJYWB4BD24HFXX0Tt6AT
Content-Disposition: form-data; name="file"; filename="test.php"
Content-Type: application/octet-stream
Content of first file
------------WABJYWB4BD24HFXX0Tt6AT
Content-Disposition: form-data; name="file";
filename="SP0921700001.XML"
Content-Type: text/xml
Content of second file
------------WABJYWB4BD24HFXX0Tt6AT--
[submit] => Upload
)
------------------------------------------------------------------------
[2009-08-08 07:53:02] mikhail dot v dot gavrilov at gmail dot com
Description:
------------
Opera browser a support Web Forms 2.0, it allows easy build uploading
multiple files form. Below given a fragment of html code demonstrates
it. (In file open dialog you can select few files)
<form action="upload.php" name="acp_users"
enctype="multipart/form-data" method="post">
<input type="file" min="1" max="9999" name="file"/>
<input type="submit" name="submit" value="Zagruzit"/>
</form>
Now the problem is that PHP does not understand http request from a
browser with multiple file's selected. ($_FILES array is empty).
Reproduce code:
---------------
Upload to server a few files through Opera, by described above method.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49196&edit=1