Issues

ZF-5744: Multible file uploads using the same $formname in setFileUpload

Description

With the current file upload implementation I can't generate an multiple file upload using the same formname similar to example 1 on http://php.net/manual/en/…

the following code will only upload the last file:


foreach ($files as $file) {
    $httpClient->setFileUpload($file, 'userfile[]');
}
$rs = $httpClient->request('POST');

Comments

A patch fixing this is attached, however a subtle BC breakage is introduced. Will apply after consulting with people at Zend.

Fixed and documented in CS-16822

Currently, the unit test for this fix fails...

The implementation of this feature is buggy. See the unit test.

Solved in trunk (commit 24300)

Solved in branches/release-1.11 (commit 24301)