开发者

Zend framework forms, upload file problem

开发者 https://www.devze.com 2022-12-26 19:19 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号