如何在ajax文件上传控件中限制文件大小? [英] how to limit file size in ajax file upload control?
本文介绍了如何在ajax文件上传控件中限制文件大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
heyy ...
如何限制ajax文件上传控件中的文件大小。我试图在互联网上搜索..但是我找不到......关于那个或任何一个例子的任何想法... plz ...或任何javascript文件大小......
heyy...
How to limit the file size in ajax file upload control .I tried to search in internet ..but I couldn't found...Any idea about that or any example...plz... or any javascript for limt th e file size....
推荐答案
请参阅此链接以使用AjaxFileUpload
控制来限制文件大小。
http: //stackoverflow.com/questions/17865119/how-to-check-file-size-of-each-file-before-uploading-multiple-files-in-ajaxtoolk [ ^ ]
Refer this link for limiting the file size usingAjaxFileUpload
Control.
http://stackoverflow.com/questions/17865119/how-to-check-file-size-of-each-file-before-uploading-multiple-files-in-ajaxtoolk[^]
在您回复用户后,如果大小需要将消息限制为用户,则无法限制ajax java脚本
you can not limit in ajax after you response to user you check size if size need to limit message to user with java script
function checkfilesize() {
var total_filesize_num = 0;
var myElements =
这篇关于如何在ajax文件上传控件中限制文件大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文