jQuery将文件上传超过4GB的文件到asp.net MVC [英] Upload file more than 4GB by jquery to asp.net MVC

查看:105
本文介绍了jQuery将文件上传超过4GB的文件到asp.net MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理asp mvc应用程序.在我的应用程序中,我想向服务器端上传大于4GB或5GB的文件,但是jquery无法上传大于6MG的文件. 谢谢任何帮助我的人!

Im working on an asp mvc application . In my application I want to upload file more that 4GB or 5 GB to server side but jquery cant upload more that 6MG . Thanks any one who help me!

以上代码适用于该应用

推荐答案

此设置为1GB,您可以根据需要在网络配置中调整值

this settings for 1GB, you can adjust value upon your request in web config

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

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

maxRequestLength以KB为单位
maxAllowedContentLength以字节为单位

maxRequestLength is in KB
maxAllowedContentLength is in Byte

这篇关于jQuery将文件上传超过4GB的文件到asp.net MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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