gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Gallery block: captions entered during upload process are lost

Open bluefuton opened this issue 5 years ago • 5 comments

Description

When using the gallery block, if you enter an image caption while the image is still uploading, the caption is lost.

Step-by-step reproduction instructions

  1. Create a new gallery block
  2. Select several larger images to upload to the block (my demo images are 8Mb each)
  3. Before the first image has finished uploading, edit the caption for it
  4. Wait for the image to finish upload - notice that the image caption is now gone

Screenshots, screen recording, code snippet

2021-11-15 13-37-54 2021-11-15 13_40_04

Environment info

  • WordPress 5.9-alpha-52154
  • Firefox v94.0.1

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

bluefuton avatar Nov 15 '21 00:11 bluefuton

@glendaviesnz I believe this would be interesting for you to take a closer look at.

paaljoachim avatar Mar 08 '22 11:03 paaljoachim

WordPress Version 6.4.3

https://github.com/WordPress/gutenberg/assets/5989338/67ef7610-a2e5-47f1-be01-0018fac239b0

The caption could no longer be added during upload, so the problem no longer occurred

AtsushiA avatar Feb 28 '24 12:02 AtsushiA

The defect did not occur in the following versions WordPress : 6.6 Gutenberg : 18.8.0

https://github.com/user-attachments/assets/e13eab5a-06ac-4143-ab5c-be3c522e13f3

AtsushiA avatar Jul 21 '24 07:07 AtsushiA

I attempted to reproduce this issue following the exact steps provided but was unable to replicate the caption loss behavior.

Environment:

  • WordPress Version: 6.9-alpha-60272
  • Gutenberg Version: Latest trunk branch

https://github.com/user-attachments/assets/70c4bbe3-ac33-4efe-8557-873c375676d7

Adi-ty avatar Jun 09 '25 13:06 Adi-ty

There are already a good amount of failed reproduction reports. I also tested by myself and can't reproduce.

It's time to close this ticket as worksforme

Thanks @Adi-ty @AtsushiA for testing and @bluefuton for reporting, but it seems it might be solved when the caption system was moved into the editable bar (instead of directly adding the captions in the uploading images as it happened when you added the report)

SirLouen avatar Jul 29 '25 17:07 SirLouen