Skip to content

Gallery: images stuck in upload in progress state  #39923

Closed

Description

@delowardev

Description

If someone presses the 'Save' button while the gallery block is uploading images, images get stuck in the loading state.

Please check the attached video: https://share.vidyard.com/watch/zZ3dZUQVofCkPziqYa4kTg

Step-by-step reproduction instructions

  1. Create a gallery block
  2. Drop some images
  3. Press the 'Save/Update' button while images are uploading.
  4. Reload the browser window

Screenshots, screen recording, code snippet

Screenshot:
Screen Shot 2022-03-31 at 10 25 33 AM

Environment info

  • Gutenberg: 12.9.0
  • WordPress: 5.9
  • Browser: Chrome

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

Activity

  1. Mamaduka commented on Mar 31, 2022

    @Mamaduka
    Member

    Related #16030.

  2. added
    [Type] Bug
    [Feature] Media
    [Block] Gallery
    on Mar 31, 2022
  3. noisysocks commented on Aug 30, 2022

    @noisysocks
    Member

    This and the related issues have been a longstanding problem to do with using setAttributes( { image: null } ) as how we indicate that the image is uploading. We ought to use useState() and then only call setAttributes once when the image is uploaded.

  4. Mamaduka commented on Aug 30, 2022

    @Mamaduka
    Member

    The image block uses state while image is blob.

    if ( isBlobURL( media.url ) ) {
    setTemporaryURL( media.url );
    return;
    }

  5. annezazu commented on Sep 25, 2026

    @annezazu
    Contributor

    I tried to replicate this with WordPress 7.1.2 and Gutenberg 24.0 but I wasn't able to. Specifically, the save button greys out while the images are loading.

    unable.to.replicate.39923.mov

    I think this is due to #74951 and #76973

    Closing out as a result! Thanks for originally reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Gallery[Feature] Media[Type] Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions