Opened 2 years ago

Last modified 2 years ago

#16820 new defect (bug)

Browser uploader in media library shows no error information

Reported by: solarissmoke Owned by:
Priority: normal Milestone: Awaiting Review
Component: Upload Version: 3.1
Severity: minor Keywords: has-patch dev-feedback
Cc:

Description

In wp-admin/media-new.php, if you use the browser uploader, you get no information about errors.

For example if the file you upload is too large, you just get redirected to the media library with the message "Error saving media attachment." Not very helpful - and also inconsistent - because if you do exactly the same thing using the pop-up image editor (i.e., select "Add an Image" from the Upload/Insert menu while editing a post), then you do get useful error information.

I propose that if there are errors, the user should not be redirected to the Media Library. Instead Wordpress should wp_die telling them what went wrong.

Attachments (1)

16820.diff (1020 bytes) - added by solarissmoke 2 years ago.
With browser uploader, don't redirect back to media library and instead tell the user what went wrong.

Download all attachments as: .zip

Change History (3)

  • Keywords has-patch added
  • Severity changed from normal to minor

With browser uploader, don't redirect back to media library and instead tell the user what went wrong.

  • Keywords dev-feedback added

Patch is a bit messy, but it tells the user what happened when something went wrong with the rowser uploader.

Note: See TracTickets for help on using tickets.