IIS7 swfupload 404 Error uploading large file

Source: Internet
Author: User

Request upload attachment size limit at 2G, originally thought can be easily done. In the compilation mode can upload large files, but under the IIS7 (its own server), upload a large file will be an Http 404 error, the occasional file and Io. Error. Always do not understand, on-line search probably understand the upload control is divided into two upload modes:

1, read the file into memory once, and then write to the service. This causes the service response to become slower if the file is too large.

2, foreign Upload control lion.web.uploadmodule,aspnetupload (I also search through the Internet), is the file block read, read some, write some to the hard disk.

I also did not delve into the swfupload this upload control is not the 2nd method, is to bring it to use.

Looking for a long time finally let me find an article to solve the problem of HTTP 404 (Good things for everyone to share)

Http://hi.baidu.com/v71000/blog/item/3ff017f7e13f727fdcc4748f.html

Using SWFUpload to upload large files under IIS6 is no problem, but migrating to IIS7 below, when uploading large files, an HTTP 404 error occurred.

Check for a long, originally is IIS7 under the default settings limit the upload size. The size setting in Web. config is not valid at this time.

Configuration in Web. config

<system.web> 

Specific steps:

1. Open IIS Manager and locate the default Web Site. Stop first.

2. In IIS, double-click Request filtering to open it.

3. Click Edit Feature Settings on the right to open the Edit Request Filter Settings dialog box.

The maximum allowed capacity length, the default is "30000000", 30M, modify it to the size you need.

4. Start IIS.

So the upload of this big file will be solved.

IIS7 swfupload 404 Error uploading large file

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.