验证:在web.config文件中将maxRequestLength设置为最大20 mb,如果上传超过20 mb的文件,如何限制用户 [英] Validation:In web.config file set maxRequestLength upto 20 mb how to restrict user if upload more than 20 mb file

查看:122
本文介绍了验证:在web.config文件中将maxRequestLength设置为最大20 mb,如果上传超过20 mb的文件,如何限制用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

已经在web.config文件中设置了maxRequestLength = 20480,但是当用户上传文件超过20 mb时,将用户限制为文件并显示消息,例如文件大小大于20 mb.

Already set maxRequestLength=20480 in web.config file but when user upload file more than 20 mb restrict user to file & show message like file size is greater than 20 mb.

推荐答案

选中此链接将解决您的问题
http://www.aspdotnet-suresh. com/2010/12/how-to-re-restrict-size-of-upload-file-in.html
Check this link it will solve your problem
http://www.aspdotnet-suresh.com/2010/12/how-to-restrict-size-of-upload-file-in.html


这篇关于验证:在web.config文件中将maxRequestLength设置为最大20 mb,如果上传超过20 mb的文件,如何限制用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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