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)

In Web.Config

    <httpRuntime maxRequestLength="8192" />


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..

    <httpRuntime maxRequestLength="x" />

      <requestLimits maxAllowedContentLength="x" ></requestLimits>

Set, x to the size limit you want. Read this post for help.

Need Your Help

Crash on std::cout string

c++ string crash

I'm getting a crash on runtime when trying to execute a simple program that cout's a string object, i'm using Borland C++ Compiler version 5.5 with the following code:

Visual Studio MFC in C++: Why is "int" working but not "double"?

c++ visual-studio mfc

I'm using Visual Studio 2013 to build a UI using the MFC application. I use "Edit Control" to take three numerical inputs and a button that will produce a dialogue box that states the values of these