Improved error handling for file uploads

This commit is contained in:
n1474335 2018-01-04 14:43:49 +00:00
parent 0ba28dc891
commit d38375a08c
2 changed files with 8 additions and 0 deletions

View file

@ -46,5 +46,9 @@ self.loadFile = function(file) {
seek();
};
reader.onerror = function(e) {
self.postMessage({"error": file.error.message});
};
seek();
};