ZF-6106: Zend_File_Transfer_Adapter_Abstract::isValid return fileUploadErrorFileNotFound for mutliple file uploads
Description
Zend_File_Transfer_Adapter_Http::prepareFiles create virtual file for mutliple file uploads elements {quote} [fileupload_0] => Array ( [name] => budget-icon-48.png [options] => Array ( [ignoreNoFile] => [useByteString] => 1 [magicFile] => )
[validated] =>
[received] =>
[filtered] =>
[type] => image/png
[tmp_name] => C:\\WINDOWS\\Temp\\php313.tmp
[error] => 0
[size] => 5829
)
[fileupload] => Array
(
[multifiles] => Array
(
[0] => fileupload_0_
)
)
{quote}
so, in line 627, please replace {{$tocheck = $key;}} to {{continue;}}
Comments
Posted by Thomas Weidner (thomas) on 2009-03-23T08:27:00.000+0000
The given code does not exist within trunk, nor is the described behaviour reproducable. The given file has only 430 lines of code.
Some lines of your code showing your problem would be great to see where your issue is.
Posted by Thomas Weidner (thomas) on 2009-03-23T08:28:59.000+0000
Reverting priority as such an issue does not stop the application to work.
Posted by Vladimir Minakov (minakov) on 2009-03-23T10:01:51.000+0000
http://framework.zend.com/code/browse/…
don't work: $adapter = new Zend_File_Transfer_Adapter_Http(); if ($adapter->isValid() === false) { ....; }
work: $adapter = new Zend_File_Transfer_Adapter_Http(); if ($adapter->isValid('mutliple_file_fieldname') === false) { ....; }
Posted by Vladimir Minakov (minakov) on 2009-03-23T10:03:42.000+0000
Posted by Thomas Weidner (thomas) on 2009-03-24T13:37:32.000+0000
Within the testbed there is an empty error returned and not the error you wrote. Has been fixed within trunk r14466