ASP. NET uses the Ajaxupload.js plug-in to upload a large file failure resolution method

Source: Internet
Author: User

Download a ajaxupload.js plugin on the internet, for no refresh upload pictures to make, and then follow the example of the demo to run a bit, upload ah what are OK, but just upload the example image has a relatively large, 4m,5m look, and then upload will report the above error.

Simply look at my description, it is obvious that the reason for the larger picture, may soon think of the configuration of the Web. config problem, but when I was the authority of the time, there is no such a light, because there are hints wrong, there is a visit to Baidu, the results found what is "cross-domain tuning function" problem, so far, The question I explored is in the wrong direction.

Although there is no obvious point in the question is the size of the upload image is related, but this problem is not set the size of the upload file, and the default upload file size of ASP. 2M

Let me tell you the solution first by adding the following paragraph to the <system.web> of Web. config

  10240   usefullyqualifiedredirecturl="  true   " executiontimeout="  12000   minfreethreads="  8   minlocalrequestfreethreads="  4   " Apprequestqueuelimit= " 100  "  enableversionheader=< Span style= "color: #800000;" > " true  " /> 

Description

ASP. NET uses the Ajaxupload.js plug-in to upload a large file failure resolution method

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.