C # Asp.net ext file fileupload File Uploading background request. Files cannot be obtained Solution

Source: Internet
Author: User

We are working on this UX today. when the fileupload control was used for a day, the background could not get the files object. Google did not get the results for one afternoon, and it was successful when I came back to try again in the evening. The version I used was 3.3, submitted using formpanel. I checked it in his API and didn't provide the fileupload: True attribute. It's only available in basicform, in the past, this attribute was essential for file upload,

The following submit operation:

Another important thing to note is that although Ajax is submitted, you cannot view it on the firebug console in Firefox. You must view it on the network, first, clear all the other options in the network, and click the upload button to view the upload operations separately. This shows the same requests as normal Ajax. In the future, pay attention to the Ajax requests, I can't see it on the console, but I can see it on the network. It took me a long time to find it. I hope it will inspire you,

BackgroundCode:

 

Finally, let's talk about it.ProgramC # allows a page to have only one form tag, but uses Ext. form. when formpanel is used, he will automatically create another form. Therefore, An ASPX page has two forms. This should be noted, but generally there will be no problems, alas, cup reminder program ape ..

 

If the answer above can inspire you, don't look at it as a virtue.

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.