vue-filepond: Is it possible to change error message?

I tried to change onerror in server options but it didnt work:
setOptions({
server: {
url: '/admin/upload',
process: {
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content'),
},
onerror: res => {
debugger
return '123'
},
},
},
})
| Environment | Version |
|---|---|
| OS | Windows 10 |
| Browser | Google Chrome 68.0.3440.106 |
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 2
- Comments: 16
Hi, just published version
2.1.0of the core filepond library, can you install that instead of2.0.1.The
onerrorcallback on theprocessobject should then receive your JSON string{"filepond":["The filepond must be a file of type: audio\/mpeg."]}.You can now set a function to a label property. The error object received by that function will contain the information returned by the process
onerrorcallback.