odd Zend_Form_Element_File behavior

佐手、 提交于 2019-12-04 03:27:00

Are you doing the right kind of EncType? It should be 'multipart/form-data'. If it's not, the file element's key might not be getting put in the $_FILES array and the file element interprets that as the file was too big to be uploaded to the server.

Mmm if it says ini size, have you checked the upload_max_filesize directive in your php.ini?

check the view of the form, maybe you are rendering the form partially, try to put this on the view of your form:

<?=$this->form?>

(this worked for me)

only form?> will work fine with uploading any file. but problem occurs when we try to put partial form as : form->file ?>

form->file ?> it will always show error so try to implement full form and avoid putting elements of form.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!