C# 如何在mvc3中将大型视频文件上传到服务器路径
我开发了一个asp.net mvc3 web应用程序,我想上传图片和视频。图片保存在服务器路径中,但当我上传超过50MB的视频文件时,它会显示错误C# 如何在mvc3中将大型视频文件上传到服务器路径,c#,asp.net-mvc-3,C#,Asp.net Mvc 3,我开发了一个asp.net mvc3 web应用程序,我想上传图片和视频。图片保存在服务器路径中,但当我上传超过50MB的视频文件时,它会显示错误 This webpage is not availableThe webpage at http://localhost:1318/Campaign/Advertises might be temporarily down or it may have moved permanently to a new web address. Here a
This webpage is not availableThe webpage at http://localhost:1318/Campaign/Advertises might be temporarily down or it may have moved permanently to a new web address.
Here are some suggestions:
Reload this web page later.
Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.
这是我收到的错误。请帮助我如何解决此问题以在服务器路径中上载文件。在web.config文件中设置此错误:
<httpRuntime maxRequestLength="<kilobytes allowed per upload>" />
因此,如果您希望允许文件容量达到50兆,请设置此选项
<httpRuntime maxRequestLength="51200" />
您好,感谢您给予响应。我已经在web.config文件中设置了此MaxRequestlenth。是的,你可以上传10兆左右的文件。你会想增加的。如果你看Darin的答案,你可以找到更深入的解释和解决问题的方法。是一个可以在客户端上使用的组件。