I use Zend forms in my web application. I wonder where Zend puts uploded temp file by default ? I can't 开发者_如何学Cfind it in server tmp dir. For example if I upload image(1.jpg) via file field, it appears on tmp folder, but as 1.jpg(/tmp/1.jpg). But I need temporary file like /tmp/phpeZApBn. Maybe it is in any other location ?
Any help would be appreciated.
Zend_Form_Element_File by default uses Zend_File_Transfer_Adapter_Http to handle the file transfer. I believe it uses the system defaults by default. You can change the default by adding a new instance of Zend_File_Transfer_Adapter_Http with Zend_Form_Element_File::setTransferAdapter.
精彩评论