使用asp.net(.aspx)中的jquery进行文件上传验证

问题描述:

大家好,



如何在aspx页面中为fileupload控件编写验证脚本。



请帮帮我。



谢谢和问候

Santhiosh

hi all,

how to write validation script for fileupload contol in aspx page.

please help me.

thank and regards
Santhiosh

Take看看以下链接:

http://adamsanderson.github.com/jQuery-File -Validator / [ ^ ]



链接中提到这个解决方案有一个警告。它可能适用于某些浏览器,而不适用于某些浏览器。仅在客户端验证时不能依赖文件上载验证。最好也是服务器端。
Take a look at following link:
http://adamsanderson.github.com/jQuery-File-Validator/[^]

Its mentioned in the link that there is a caveat to this solution. It might work in some browsers and not in some browsers. File Upload validation cannot be relied only on client-side validation. It is better to do it server side as well.