Many websites let users upload content directly through a web browser, but this way lacks the interactivity between the user and the remote server, thus allowing them Interaction has not been so easy. First of all, there is basically no feedback during the upload process, and sometimes the only feedback that is obtained after a long wait is an annoying error. Still, using a browser to upload files is still a widely accepted method of file transfer. Because users prefer its simplicity, rather than the laborious use of File Transfer Protocol (FTP) tools. Although this method is widely accepted, it does not guarantee that it will not go wrong. A confirmed Microsoft IIS problem is that a timeout error occurs when processing an upload file larger than 48K. Sometimes this is just an upload failure, but at other times this will cause the browser to enter an infinite loop of constantly trying to resend data. Because for the browser, there is no standard response for this particular situation. The reason for this hang is that IIS uses an application such as ASP to handle the upload of client data. When the client starts committing data, IIS reads the first 48K of data into the buffer and passes it to the application for processing. Any data that exceeds this 48K will be in a wait state until the application requests a transfer, usually through a command like Request.BinaryRead(Request.TotalBytes). If the application does not request, the data is waiting for a connection. This is a typical 413 error: the request entity is too large. In general, good coding in accordance with the above rules can avoid such problems, but in some cases you may need to use specific property settings. For example, if the upload of one of your sites is handled by a third-party ISAPI extension, it does not follow this practice, and some adjustments are needed to overcome the 48K limit. This restriction is not static, it is defined by a IIS metadata attribute called UploadReadAheadSize. The default is 49152K and the maximum can be set to 4GB. If you need to, you can set up a separate site or set up the entire IIS service. This may not be the only property that needs to be set. You may also need to modify the maxRequestLength (in IIS6) or maxAllowedContentLength (in IIS7+) attribute values to allow large data uploads, although their default values are larger. In some cases, it can be helpful to set the value of UploadReadAheadSize to zero. This forces IIS to stream the submitted content directly to the ISAPI extension application to process the request. This may be the first method worth trying to solve this problem, but you should also notice the possible side effects of shutting down the IIS application (without processing the read-ahead buffer). Finally, keep in mind that increasing the value of UploadReadAheadSize will produce an attack surface. If this value is set high and someone wants to attack your system by uploading files to consume bandwidth, they will be easy to get. To avoid attacks, use a method that reflects the user's actual usage and insist on using authentication as much as possible to ensure that the uploader's identity is trustworthy.
Method 1: 1, open our IIS manager, find the shared configuration in the function view, and then dou
Software version: the latest version jdk-8u5-windows-x64: http://download.oracle.com/otn-pub/jav
for web server This article introduces simple web site construction and single iis multi-domain na
When using Windows NT 4.0, IIS has become a popular web server platform. IIS 4.0 is released
Optimize Win 2003 server IIS6.0 to reduce WEB pressure
Windows system IIS environment to install memcache method
Web server management series: 9, create a password reset disk
How to backup Windows 2000 server IIS configuration
Solution to IIS suspended animation
Notes on installing IIS 6.0 with PHP 5
Apache PHP 5.3.1 installation tutorial under Windows
Set gzip page compression in iis
Windows 2003 Vps security settings problem tutorial
The new version of mysql+apache+php Linux installation guide
Solve the problem when installing IIS: error code 0x4b8 problem
Set up a "blocking line" to let the program see my face acting
How to install Protel DXP 2004 with Win7
What you should know about Windows 7 booting
Ten security improvements brought by WinXPSP2
Maximize the IE window (especially the new window opened by the hyperlink)
How to install JITwatch in Linux system?
Win10 downgrade Win7/Win8.1 assistant: win10 downgrade graphic tutorial
How to modify the display text of WinVista desktop icon
Win7 removes the best solution for EISA hidden partitions
Windows 10 build 9926 What's new? Update content summary (latest)