Trying to get data from HTTP responseText
error: function(data) {
$form.removeClass('is-uploading');
$form.addClass('is-error');
$errorMsg.text(data.responseText);
}
Getting
{
"message": "The given data was invalid.",
"errors": {
"files": [
"The files must be a file of type: xls, xlsx."
]
}
}
Tried using json.parse but errors not show