Skip to content

Non-Font Format File Upload Leads to Infinite Loading State #58874

@okmttdhr

Description

@okmttdhr

Description

When attempting to upload custom fonts, the upload functionality works as expected for font files. However, when a ZIP file (or potentially other non-font file formats) is uploaded by mistake, the UI shows an infinite loading state, instead of an error message.

Step-by-step reproduction instructions

  • Go to the Font Library modal and select the Upload tab
  • Upload a zip by a drag & drop
  • See the infinite loading state

Screenshots, screen recording, code snippet

Screen.Recording.2024-02-09.at.16.19.25.mov

Environment info

Gutenberg >= 17.6

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

Yes

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

No

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions