Bug report
Spreadsheet fromFile() method does not return reject promise when an error occurs while loading file. An error is thrown on the browser console instead.
The issue has been tracked to the following implementation in the source:
- In the spreadsheet/workbook.js, the method fromFile() rejects the promise only when no file has been passed to the method code
- In the spreadsheet/excel-reader.js the method readWorkbook() should receive the deferred object as its last argument, but is renamed to progress and never used in the method;
Reproduction of the problem
- On the following Dojo select invalid file in the file input (.png, .pdf, .jpg or other);
Expected:
the 'No file to be loaded!' should be alerted;
Actual:
An error will be thrown on the console
Kendo version: 2023.3.1010