vue-upload
vue-upload copied to clipboard
How to get error message on onError
trafficstars
What is the way to get error messages that the script calls?
I can get it like:
error.errors[0].msg
But there must be an easier way.
onError(error) {
console.log(error.errors[0].msg, 'onError')
// vm.uploadErrors() I need a simple way to pass errors to my error handler
}
Also is there a way to customize the error messages?
Thanks,
Dave