Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lawrenceCheers opened this issue Sep 26, 2024 · 0 comments
Open

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

lawrenceCheers opened this issue Sep 26, 2024 · 0 comments

Comments

@lawrenceCheers
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant