mirror of https://github.com/perkeep/perkeep.git
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:
parent
23ff0a071f
commit
bf28e7e6e5
|
@ -234,6 +234,9 @@ function startFileUpload(file) {
|
|||
});
|
||||
}
|
||||
};
|
||||
fr.onerror = function() {
|
||||
console.log("FileReader onerror: " + fr.error + " code=" + fr.error.code);
|
||||
};
|
||||
fr.readAsDataURL(file);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue