This error means that the server closed the connection while XFile was still sending data. If you are seeing this behavior in an ASP.NET application when files over 4 megabytes are uploaded, it may be because ASP.NET's default limit for the size of an HTTPRequest is in force in your application.
ASP.NET by default limits HTTP requests to 4 MB in order to prevent denial of service attacks. This setting is configurable in your machine.config or web.config file in the maxRequestLength attribute of the httpRuntime element.
The solution is to increase the value of maxRequestLength to the maximum upload size you wish to allow. For example, if you set
maxRequestLength="102400"
... your application will accept up to 100 MB uploads.
Note: In order to handle large uploads efficiently in .NET, make sure to use FileUp's HttpModule. For more information, see the FileUp documentation under: Large Uploads in ASP.NET
|