上传前Asp.Net检查文件大小 [英] Asp.Net Check file size before upload
本文介绍了上传前Asp.Net检查文件大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要检查所选文件的大小在上传用asp文件上传组件文件。
因为该解决方案必须在每个浏览器的作品,我不能使用ActiveX(火狐,Chrome等)
I want to check the selected file size BEFORE uploading a file with the asp fileupload component. I can not use activex because the solution have to works on each browser (firefox, Chrome, etc..)
我怎么能这样做?
谢谢您的回答。
推荐答案
<击>简短的回答是,你不能。击>。
这是基于低通过HTML文件API的旧接受的答案。现在,您可以检查一下。
This was an old accepted answer based on the low adoption of the HTML file API. You now can check it.
这篇关于上传前Asp.Net检查文件大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文