问题描述:

I'm using the features of the new browsers (HTML5 API - files prop) to get the size and the type of the uploaded files with jquery in this way.

$(function() {

$('#myFile').bind('change', function() {

//gets the size and the type of your file.

var fsize = $('#myFile')[0].files[0].size;

var ftype = $('#myFile')[0].files[0].type;

alert("size : " + fsize + " type : " + ftype);

});

});

I would like to know if I can use external libraries (Modernizr, html5shim, etc) to implement these features

even on older browsers, such as IE8.

Thanks.

网友答案:

Older Browsers doesn't support HTML5, so any of these features can't be implemented.

相关阅读:
Top