Req #50338 [Opn]: multipart/mixed POST data (RFC2388) not supported
Edit report at https://bugs.php.net/bug.php?id=50338&edit=1
ID: 50338
Updated by: mike@php.net
Reported by: mikhail dot v dot gavrilov at gmail dot com
Summary: multipart/mixed POST data (RFC2388) not supported
Status: Open
Type: Feature/Change Request
Package: *General Issues
PHP Version: 5.3.1
Block user comment: N
Private report: N
New Comment:
See also https://tools.ietf.org/html/rfc7578#section-4.3
Previous Comments:
------------------------------------------------------------------------
[2010-12-01 04:48:48] 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.
------------------------------------------------------------------------
[2009-11-30 19:52:30] 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>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=50338&edit=1
Thread (8 messages)