ckeditor / ckeditor5-react

Official CKEditor 5 React component.
https://ckeditor.com/ckeditor-5
Other
425 stars 99 forks source link

need to show an error when user try to upload non image file #539

Open lawrenceCheers opened 1 month ago

lawrenceCheers commented 1 month ago

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!