So basically I am using a custom upload adapter to upload images to our CDN and we are using ImageUpload from "ckeditor5" for this, we have noticed that when user tries to upload a non-image file such as .pdf, there is no visual error or signs thrown due to which user can understand their error.
Please guide me as to how to catch the error or event so that I can show the error to the end user.
ckeditor versions used in react project:
"@ckeditor/ckeditor5-react": "^8.0.0", "ckeditor5": "^42.0.1",
So basically I am using a custom upload adapter to upload images to our CDN and we are using ImageUpload from "ckeditor5" for this, we have noticed that when user tries to upload a non-image file such as .pdf, there is no visual error or signs thrown due to which user can understand their error.
Please guide me as to how to catch the error or event so that I can show the error to the end user.
Thanks!