ID: 49196 User updated by: mikhail dot v dot gavrilov at gmail dot com Reported By: mikhail dot v dot gavrilov at gmail dot com Status: Open Bug Type: HTTP related Operating System: * PHP Version: 5.3.0 New Comment:
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 ) Previous Comments: ------------------------------------------------------------------------ [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