Ajax的post请求已超过4 MB的文件 [英] Ajax post request have more than 4 mb file

查看:396
本文介绍了Ajax的post请求已超过4 MB的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发一个MVC 4 application.I我发送Ajax post请求到一个控制器action.When后的数据超过4MB的requist行动是failing.What是该解决方案?

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 could try extending the size of one of these properties..

<system.web> 
    <httpRuntime maxRequestLength="x" />


<system.webServer> 
  <security> 
    <requestFiltering> 
      <requestLimits maxAllowedContentLength="x" ></requestLimits>

套装, X 到你想要的大小限制。读<一href="http://weblogs.asp.net/jeffwids/archive/2009/09/24/from-iis6-maxrequestlength-to-iis7-maxallowedcontentlengthfile-specifying-maximum-file-upload-size.aspx"相对=nofollow> 这个帖子 寻求帮助。

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

这篇关于Ajax的post请求已超过4 MB的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆