Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.7.4
-
Fix Version/s: 1.11.10
-
Component/s: Zend_Http_Client
-
Labels:None
-
Tags:
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/features.file-upload.multiple.php
the following code will only upload the last file:
foreach ($files as $file) {
$httpClient->setFileUpload($file, 'userfile[]');
}
$rs = $httpClient->request('POST');
A patch fixing this is attached, however a subtle BC breakage is introduced. Will apply after consulting with people at Zend.