Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
File API NotFoundError not handled by config.error callback #81
I am testing how PapaParse handles local files that are not found. I expected PapaParse's error callback to be invoked with FileReader's NotFoundError as a parameter, but neither the error callback nor complete callback seem to be called.
To reproduce in Chrome:
I am new to PapaParse, so if there is an alternate way i should be detecting FileReader errors, please advise. Below is my somewhat-redacted development code:
I think this is a bug, but the funny thing is I can't find any evidence in the documentation that I ever intended for this to work... it might have been an oversight.
However, selecting files using the jQuery plugin does support an error handler. If you have jQuery on your page, you can use jQuery which will use the error handler.
But I suppose having an error handler is necessary even when not using jQuery. I'm glad you pointed this out. I will look into adding this for 3.1.