ZF-4950: Zend_File should work without setting a destination directory

Issue Type: Improvement Created: 2008-11-14T05:31:14.000+0000 Last Updated: 2008-11-14T08:01:49.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Goran Juric (gog) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer

Related issues: Attachments:


If destination directory is not set, Zend_File should assume that the destination directory is the same one that is returned by PHP function sys_get_temp_dir().

This way is you use Rename Filter for moving the file to the final location after the upload you do not need to call setDestionation() on the element.

In case you are rendering a form with a file element that doesn't have destination set throws: "Warning: Exception caught by form: "file_element_name" not found by file transfer adapter"


Posted by Thomas Weidner (thomas) on 2008-11-14T06:04:16.000+0000

This is exactly what this component already does.

Posted by Goran Juric (gog) on 2008-11-14T08:01:48.000+0000

You are right. I had the ViewHelper decorator turned on. After I've removed it, the error was gone.

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.