我有一个在Chrome和Firefox工程的下一个代码,但是IE发送“未定义”的消息。输入文件的onChange IE
<input type="file" name="image" onchange="inputFileChange(this);"/>
function inputFileChange(el) {
console.log($(el).context.files);
}
这是firefox和chrome中console.log的结果。
FileList
0: File
lastModifiedDate: Thu Dec 20 2012 19:01:23 GMT-0600 (Hora estándar central (México))
name: "izq02_a.jpg"
size: 69767
type: "image/jpeg"
...这是导致IE
REGISTER: undefined
我需要的图像文件大小上传之前,任何想法?
其上的代码的jQuery? – Toping