5-second delay to upload pasted images

When I paste an image into the WYSIWYG editor, it very quickly says “downloading”, then it says “Upload in 5 seconds”, counting down to zero before actually uploading (almost always faster than the countdown itself). What is the purpose of this delay? Is it possible to disable? I am using XWiki 17.10.3 running in a Podman container.

Hello @Kef,

This delay is not expect and looks like a bug.
Can you elaborate on your podman configuration architecture? For instance, do you have a reverse proxy in front of the xwiki container?
Thanks.

The delay allows you to prevent the image upload (e.g. Esc key). This can be useful when you paste content (HTML) copied from another web page, and you want to keep the images from the pasted content external. I know you said “paste an image” but the issue is that depending on the source you copied the image from, the clipboard may contain multiple entries for that image: e.g. one for the binary file itself and another one with the HTML representation of that image. Browsers do this… The WYSIWYG editor gives priority to the HTML entry from the clipboard, so even if you copied an image, the editor may behave as if you pasted HTML (that has an image). There’s no configuration to always force the upload (i.e. skip the 5s delay) unfortunately. You can only prevent the upload entirely, but that’s not what you want. Note that you should be able to continue editing while the image is being uploaded (with delay). The editor already inserted a placeholder for the image. You only need to wait if you want to save the edited page right after pasting the image. There is definitely a usability issue here.

Thanks,
Marius

1 Like

Thanks for the explanation. It’s not that big a deal and knowing the reason for the 5-second wait somehow makes it less annoying.