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