Make WordPress Core

Opened 9 months ago

Closed 6 weeks ago

Last modified 6 weeks ago

#61361 closed enhancement (fixed)

Improve description on image upload error

Reported by: cybr's profile Cybr Owned by: adamsilverstein's profile adamsilverstein
Milestone: 6.8 Priority: normal
Severity: normal Version:
Component: Media Keywords: has-patch reporter-feedback
Focuses: Cc:

Description

Follow up from ticket:60932#comment:13.

When a user uploads an AVIF or WEBP image on a server that doesn't support it, they get this error message:

This image cannot be processed by the web server. Convert it to JPEG or PNG before uploading.

This message doesn't convey "why" they cannot upload it: It is to generate various image sizes for responsive image support.

Change History (7)

#1 @adamsilverstein
9 months ago

  • Owner set to adamsilverstein
  • Status changed from new to assigned

Excellent, thank you for opening this @Cybr!

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


8 months ago

This ticket was mentioned in PR #7366 on WordPress/wordpress-develop by @adamsilverstein.


5 months ago
#3

  • Keywords has-patch added

#4 @adamsilverstein
5 months ago

  • Keywords has-patch removed

I took a pass at updating error messages for uploads in https://github.com/WordPress/wordpress-develop/pull/7366/

#5 @adamsilverstein
4 months ago

  • Keywords has-patch reporter-feedback added
  • Milestone changed from Awaiting Review to 6.8

@Cybr appreciate any feedback on the updated language in the PR.

#6 @adamsilverstein
6 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 59590:

Media: improve error messages for unsupported uploads.

Improve language explaining the reason for failure when uploading a modern image format like WebP or AVIF that the server doesn’t handle.

Props adamsilverstein, Cybr.
Fixes #61361.

Note: See TracTickets for help on using tickets.