ZF-6108: Zend_File_Transfer_Adapter_Abstract

Issue Type: Bug Created: 2009-03-23T11:51:21.000+0000 Last Updated: 2009-03-24T15:12:48.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Vladimir Minakov (minakov) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: Attachments:


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) {


Posted by Vladimir Minakov (minakov) on 2009-03-23T11:56:16.000+0000

also check getHash() getFileSize()

Posted by Vladimir Minakov (minakov) on 2009-03-23T11:58:02.000+0000


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

Posted by Thomas Weidner (thomas) on 2009-03-24T15:12:45.000+0000

Implemented with r14471 in trunk

Have you found an issue?

See the Overview section for more details.


© 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.