Zend Framework

Zend_File should work without setting a destination directory

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.7.0
  • Component/s: Zend_File_Transfer
  • Labels:
    None

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"

Activity

Hide
Thomas Weidner added a comment -

This is exactly what this component already does.

Show
Thomas Weidner added a comment - This is exactly what this component already does.
Hide
Goran Juric added a comment -

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

Show
Goran Juric added a comment - You are right. I had the ViewHelper decorator turned on. After I've removed it, the error was gone.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: