Add FileReader onerror handler

Chrome 14.0.797.0 (Official Build 89638) dev has a FileReader bug, btw.  Fixed in 798.

Change-Id: Ie370a368be0ad8e923354f6f02a0cc55705b4642
This commit is contained in:
Brad Fitzpatrick 2011-06-23 18:26:27 -07:00
parent 23ff0a071f
commit bf28e7e6e5
1 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,9 @@ function startFileUpload(file) {
});
}
};
fr.onerror = function() {
console.log("FileReader onerror: " + fr.error + " code=" + fr.error.code);
};
fr.readAsDataURL(file);
}