Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81728

How to replace error message and prevent upload?

$
0
0

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?


Viewing all articles
Browse latest Browse all 81728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>