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: 2010-12-01 04:49 UTC
Votes:29
Avg. Score:4.9 ± 0.3
Reproduced:28 of 28 (100.0%)
Same Version:14 (50.0%)
Same OS:9 (32.1%)
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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
45 - 2 = ?
Subscribe to this entry?

 
 [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
 [2010-12-03 15:44 UTC] imbolk at gmail dot com
Please add Opera support.

Opera one is popular browsers in some countries. e.g.: http://www.liveinternet.ru/stat/ru/browsers.html?period=month
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon Sep 23 04:01:27 2019 UTC