O atributo do arquivo de entrada do IE é indefinido
Eu tenho a seguinte tag do arquivo de entrada:
<input type="file" id="handlerxhr1" />
No mozilla, quando executo o seguinte código jQuery:
var input = $('#handlerxhr1')[0];
$('#upload').click(function() {
alert(input.files[0]);
});
Eu recebo resposta: [objeto Arquivo] (o que é bom).
Mas no IE eu recebo 'input.files.0 é indefinido'
O que estou fazendo errado? Obrigado.