开发者

input of type file in IE

开发者 https://www.devze.com 2023-01-27 13:13 出处:网络
Hello I know in firefox and chrome exists .size to get file size with javascript and it\'s even possible to upload multifiles with ajax (input type=file multiple=TRUE) using xmlhttp.send(file) (or xhr

Hello I know in firefox and chrome exists .size to get file size with javascript and it's even possible to upload multifiles with ajax (input type=file multiple=TRUE) using xmlhttp.send(file) (or xhr.sendAsBinary(file.files[0].getAsBinary()); in firefox<=3.5). Now i am trying to make a sort of jquery plugin for multiple file uploader (of course using forms and frames in IE detect) but will be much better if i could get file size in IE开发者_StackOverflow社区. So is there any way to get file size from input of type file in IE?


You can use this for getting file size in IE:

var fileSize = document.getElementById("somfile").size;

0

精彩评论

暂无评论...
验证码 换一张
取 消