Issues

ZF-6108: Zend_File_Transfer_Adapter_Abstract

Description

work ok : {{$adapter = new Zend_File_Transfer_Adapter_Http();}} {{echo $adapter->getMimeType('fieldname');}}

don't work: {{$adapter = new Zend_File_Transfer_Adapter_Http();}} {{$adapter->receive();}} {{echo $adapter->getMimeType('fieldname');}} return "File 'filename.ext' does not exist"

reason: {{$adapter->receive()}} execute "move_uploaded_file" so {{if (file_exists($value['name'])) {}} {{} else if (file_exists($value['tmp_name'])) {}} return false.

maybe use: {{foreach($this->getFileName($files) as $key => $value) {}}

Comments

also check getHash() getFileSize()

hack:

$cwd = getcwd(); chdir($adapter->getDestination('fieldname')); echo $adapter->getMimeType('fieldname'); chdir($cwd);

Implemented with r14471 in trunk