Ajax post request have more than 4 mb file
I am developing an MVC 4 application.I am sending ajax post request to a controller action.When the post data is more than 4MB the requist to action is failing.What is the solution for this?
You need to change two configuration parameters (value is in KB)
<configuration> <system.web> <httpRuntime maxRequestLength="8192" /> </system.web> </configuration>
Update your 'Maximum allowed content length' setting, as described here : http://ajaxuploader.com/large-file-upload-iis-asp-net.htm
You could try extending the size of one of these properties..
<system.web> <httpRuntime maxRequestLength="x" /> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="x" ></requestLimits>
Set, x to the size limit you want. Read this post for help.