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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mikhail dot v dot gavrilov at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sun Dec 08 03:01:28 2024 UTC