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

Description

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"

Comments

This is exactly what this component already does.

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