2

I got a javascript code that works in FF, chrome and other browser except IE

Here it is

    var inputfile = document.getElementById('inputfilename');
    var filetype = inputfile.files[0].type;
    var filesize = inputfile.files[0].size;
    var filename = inputfile.files[0].name;

Now the variable filetype, filesize and filename is undefined in IE
So how to get those three property in IE ?
Any help will be appreciated.

fiddle : http://jsfiddle.net/vY9y8/

4

1 回答 1

4

选项 1:等待 IE 10(应该支持最前沿的 File API 规范)

选项 2:使用可以访问此类信息的另一种技术。可能的 Flash 或签名的 Java 小程序。

于 2012-11-15T11:44:34.300 回答