jQuery Form file upload Files with size greater th

2019-08-03 04:39发布

问题:

I am using jQuery Form upload. I am unable to upload file with the size more than 4MB I debug my request in Fiddler and it is saying ReadResponse() failed: The server did not return a response for this request.

If i am uploading small file all working well and I do not get any error.

You can see my code here: jQuery Form file upload check file on server and generate errors to pass to the client

Any ideas how to fix that? Any thoughts why it is happens?

Also I think i would add some code on client which would check the file size before submit on server.

回答1:

You may need to increase the maxRequestLength setting in web.config.

More useful info here:

http://weblogs.asp.net/jgalloway/archive/2008/01/08/large-file-uploads-in-asp-net.aspx



回答2:

I think that you have problems with the max size you can upload with POST. Web server limit the size of the files you can upload. I don't know anything of ASP.NET but i found this article that might help you (the articol says that max post size is 4 Mb)