Zendframe how to get the template page table dropdowns submit the upload file and save

Source: Internet
Author: User
Tags php form
Zendframe How to Get Template page table dropdowns submit upload file and save?
Zendframe and Smarty, the template in the form of file upload requirements, I use the form of input type=file, the file post to the controller path INDEX.PHP?CONTROLLER=AAA&ACTION=A.
But the result is in the action=a phase of the controller AAA,
[File] = Array
(
[Name] = Test Business License _s1.gif
[Type] = Image/gif
[Tmp_name] = e:\\wamp\\tmp\\php88.tmp
[ERROR] = 0
[Size] = 5611
)
Can not find temporary file e:\\wamp\\tmp\\php88.tmp, it can not be used Move_uploaded_file ($_files[' file '] [' tmp_name '], $uploadfile) This form is saved as an official document.
However, if you do not use the zendframe mechanism, only use smarty, in the form of the template page to write the post path aaa.php form, you can obtain temporary files, and save. May I ask why this is, how to solve it?


------Solution--------------------
Since the use of ZF, why not directly with the ZF inside the upload file class to deal with it?
There is an article in my blog, you can refer to
http://blog.csdn.net/a82168506/article/details/6347249
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.