开发者

input of type file in IE

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜