I would like to be able to use the onFileUploadCancel with 'url' type sources and be able to validate the link properly displaying an error message on invalid links.
Current Behavior
Right now if I add the onFileUploadCancel callback to my options and use an invalid url on the url field the plugin crashes instead of showing the correct validation message to the user.
Possible Solution
Probably a validation on the file object before calling the onFileUploadCancel
Steps to Reproduce (for bugs)
Just enter the jsFiddle and configure with a valid API_KEY then use an invalid image link like https://www.google.com
Expected Behavior
I would like to be able to use the
onFileUploadCancel
with 'url' type sources and be able to validate the link properly displaying an error message on invalid links.Current Behavior
Right now if I add the
onFileUploadCancel
callback to my options and use an invalid url on the url field the plugin crashes instead of showing the correct validation message to the user.Possible Solution
Probably a validation on the file object before calling the
onFileUploadCancel
Steps to Reproduce (for bugs)
Just enter the jsFiddle and configure with a valid API_KEY then use an invalid image link like
https://www.google.com
https://jsfiddle.net/aLrfe7z0/
If you want to reproduce the bug locally instead just:
onFileUploadCancel
to the options:https://google.com
Additional Screenshots
Your Environment