Go homepage(回首页) Upload pictures (上传图片) Write articles (发文字帖)
The author:(作者)delvpublished in(发表于) 2014/1/8 7:02:12 ASP.NET技巧:设置上传文件的最大大小_[Asp.Net教程]
在web.config中添加httpRuntime元素,如下: useFullyQualifiedRedirectUrl="true" executionTimeout="45" versionHeader="1.1.4128"/> 其中maxRequestLength属性就是限制上传大小的,如设为"8192"即为8M。
来源:网络
赞