ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Listen to unsupported extension action when uploading a file (client side)

Open Ndream-JeongHoYoung opened this issue 2 years ago • 3 comments

📝 Provide a description of the new feature

What is the expected behavior of the proposed feature?


There is no response if it is an unsupported extension when uploading a file.

image image

i use ckeditor5 in react

i want to do something when an unsupported extension is uploaded

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Ndream-JeongHoYoung avatar Jun 20 '23 09:06 Ndream-JeongHoYoung

image

imageuploadui.js in ckeditor5-image

I wonder if I can use it like the code I added below. If the extension is not supported, an alert occurs. If this method is correct, please update the code.

Ndream-JeongHoYoung avatar Jun 22 '23 10:06 Ndream-JeongHoYoung

I checked and we in fact do not have a possibility to listen to this event and react to it on the client side. Remember that you can always react to the server-side error if you use the Simple upload adapter.

I wonder if I can use it like the code I added below.

Remember that you can also upload multiple images, and only some of them could be excluded and some may pass the check. I think this may not be the best place for us to add it, and when we gather enough interest from the community we will think about a better place.

You can always create your own plugin that will listen to the uploadImage command and launch notification.

Witoso avatar Jun 22 '23 13:06 Witoso

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

CKEditorBot avatar Jun 22 '24 03:06 CKEditorBot

We've closed your issue due to inactivity. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

CKEditorBot avatar Jul 23 '24 03:07 CKEditorBot