Issues

ZF-10609: Zend_File_Transfer_Http_Adapater multiple files

Issue Type: Bug Created: 2010-10-28T10:44:05.000+0000 Last Updated: 2012-11-20T21:38:06.000+0000 Status: Open Fix version(s): Reporter: Xavier (ksaf) Assignee: None Tags: - Zend_File_Transfer

Related issues: Attachments:

Description

File upload problem.

Example:

form

5 files to upload.

When using Zend_File_Transfer_Adapter_Http(), the files will be uploaded when I select the 5 files. The moment I select less then 5 files, nothing will be uploaded.

Using move_uploaded_file, no problems ...

Code example

/** bug, only does upload when all files selected in form **/

/* $upload = new Zend_File_Transfer_Adapter_Http(); $upload->setDestination($path); $upload->receive(); */

foreach($files as $key => $file){ if(!empty($file['name'])){ $ext = substr($file['name'],-4); $ext = explode('.',$file['name']); $ext = end($ext); $naam = $key.$ext; move_uploaded_file($file['tmp_name'],$path.$naam); $params[$key] = $naam; }

I'm using Zend 1.10.8

Regards,

Ksaf

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts