Currently I’m allowing the user to upload a JSON file which is then translated into the datatable below it. However, if the user attempts to upload a file without the proper data, it will display a datatables error pointing it out and it will still send the data to the datatables.
My question is two parts: 1) how do I replace the system error with something more front end friendly, and 2) how do I prevent a file that triggers such an error from being sent to the datatable?