php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #50338 multipart/mixed POST data (RFC2388) not supported
Submitted: 2009-11-30 19:52 UTC Modified: 2020-09-24 17:49 UTC
Votes:30
Avg. Score:4.9 ± 0.4
Reproduced:29 of 29 (100.0%)
Same Version:15 (51.7%)
Same OS:9 (31.0%)
From: mikhail dot v dot gavrilov at gmail dot com Assigned:
Status: Open Package: *General Issues
PHP Version: 5.3.1 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-11-30 19:52 UTC] 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, but current PHP version not meet the standard
RFC2388 www.ietf.org/rfc/rfc2388.txt
Returning Values from Forms: multipart/form-data, L. Masinter. IETF, August 1998.

4.2 Sets of files

If the value of a form field is a set of files rather than a single
file, that value can be transferred together using the
?multipart/mixed? format. 

Therefore, at present, using PHP, it is impossible to ensure efficiency uploading multiple files form at Opera browser.

Reproduce code:
---------------
<html>
  <body>
    <form action="upload.php" enctype="multipart/form-data" method="post">
      <input type="file" min="1" max="9999" name="file[]" multiple="true"/>
      <input type="submit" name="submit" value="Upload"/>
    </form>
  </body>
</html>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-01 04:48 UTC] aharvey@php.net
-Package: Feature/Change Request +Package: *General Issues
 [2010-12-01 04:48 UTC] aharvey@php.net
Per bug #47789, this also affects HTML forms with
<input type="file" multiple> elements in certain browsers, most notably
Opera. Interestingly, Firefox and Chrome don't use multipart/mixed,
probably to avoid this sort of issue, but according to the spec this
should be supported.
 [2010-12-01 04:49 UTC] aharvey@php.net
-Summary: Current PHP version not meet the standard RFC2388 +Summary: multipart/mixed POST data (RFC2388) not supported
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 06:01:30 2024 UTC