Open indigoxela opened 2 years ago
Another odd thing: after an initial successful upload, if one removes that image and switches to library, the dialog resize behaves odd. It doesn't get centered horizontally in the viewport anymore.
Whoa... another bug: upload an image, do not remove, and switch to library. Back to upload, back to library... for every switch the uploaded image appears an additional time within the libary. And the files stay there. Switching to/from library actually adds the same file again and again (as temporary file). :disappointed: But that bug isn't always reproducible.
Aha! The file duplication bug is reproducible: choose a file of which the filename ends with a digit, like image_0.png.
Steps:
whatever_0.png
Description of the bug
The ajax image upload in the image dialog breaks after switching to library select and back to upload.
Steps To Reproduce
Actual behavior
No uploading spinner. Nothing happens, actually. And nothing in the browser console.
Closing and opening the image dialog again fixes it.
Note that when hitting the insert button, the file does get inserted, so it's probably only the spinner and upload display that's broken?
Expected behavior
The image gets uploaded
Additional information