Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.7.5
-
Fix Version/s: 1.8.0
-
Component/s: Zend_File_Transfer
-
Labels:None
Description
Based on the documentation:
$upload = new Zend_File_Transfer();
$upload->receive();// Returns the sizes from all files as array if more than one file was uploaded
$size = $upload->getFileSize();
Firstly, using 'Zend_File_Transfer(); causes an exception: Zend_File_Transfer_Exception: Implementation in progress ... Transfer.php,
So if you use:
$upload = new Zend_File_Transfer_Adapter_Http();
$upload->receive();// Returns the sizes from all files as array if more than one file was uploaded
$size = $upload->getFileSize();
It throws the error:
Call to undefined method Zend_File_Transfer_Adapter_Http::getFileSize()
And likewise:
$upload = new Zend_File_Transfer();
$upload->receive();$mime = $upload->getMimeType();
It throws the error:
Call to undefined method Zend_File_Transfer_Adapter_Http::getFileMimeType()
Based on the documentation you are referring to:
And also the example in the manual reads: