在网页上上传大文件?
我们使用 MojoPortal 访问网站,但使用上传模块上传 100 MB 左右的文件时遇到一些问题。 (请注意,这可能与 MojoPortal 无关,而是与 ASP.NET 和 IIS 有关)
MojoPortal 设置为使用常规文件上传(不是 Neat Uploader),并且能够上传大文件文件我们设置了以下内容:
<httpRuntime maxRequestLength="2097151" executionTimeout="18000" requestValidationMode="2.0"/>
和:
<compilation debug="false" defaultLanguage="C#" targetFramework="4.0">
问题是上传将在几分钟后取消(中止)。
我是否需要设置任何其他值才能实现此目的?据我所知,MojoPortal 本身不应该有任何设置,所以它是常规的 ASP.NET 4.0。
此致
We use the MojoPortal to a website and have some problems to upload files that is around 100 MB with the upload module. (Pleas note that this has probably nothing to do with MojoPortal but with the ASP.NET and the IIS)
The MojoPortal is set to use regular file Upload(not Neat Uploader) and to be able to upload big files we have set the following :
<httpRuntime maxRequestLength="2097151" executionTimeout="18000" requestValidationMode="2.0"/>
And :
<compilation debug="false" defaultLanguage="C#" targetFramework="4.0">
The problem is that the upload will cacel after a couple of minuts (Aborted).
Is there any other values that I need to set to make this possible? The MojoPortal itself should not have any settings for this as far as I know so its regular ASP.NET 4.0.
BestRegards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您在 IIS 7 或更高版本下运行它。
在这种情况下,您可能还想在 web.config 中更新此属性:
I assume you're running this under IIS 7 or higher.
In this case you might want to update this property as well, in your web.config: