Adding pictures quickly one after another won't upload all the pictures that were selected
As in https://gitlab.coko.foundation/ketida/ketida/-/issues/746 When trying to add pictures in the editor by "Upload image" button in toolbar quickly, some of the images will not be loaded in the editor.
Expected behavior
Every image that is selected when uploading an image should be displayed in the editor.
Current behavior
Clicking "Upload image" button in toolbar and selecting an image from my computer, and then uploading another image before the previous image is loaded will result in one of them not shown. You need to wait for an image to show in the editor, so you can proceed by adding another one.
Steps to reproduce
- Go to the Producer Page
- Click "Upload image" from the toolbar and select an image from your computer
- Before the selected image is loaded, click again "Upload image" and select another image
- Wait and check that only one of them is shown.
- Or you could repeat Step 4 a couple of times and when you are done, you will see that not all the images will be shown
Environment
[Provide browser name and version and if you're working from a PC or Mac]
Possible solution
Image upload button is inactive until current image upload is complete