Make WordPress Core

Opened 4 years ago

Last modified 3 years ago

#49894 new defect (bug)

Drag & Drop image upload error on multisite install when no upload space available

Reported by: davidbinda's profile david.binda Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: ui, javascript, multisite Cc:

Description

On a multisite installation, a maximum upload space can be limited.

When using the classic editor and it's drag-and-drop upload feature while not having enough available space for a site, the image file ends up being loaded in the browser (at least in chrome) with following JS error in console:

Uncaught TypeError: Cannot read property 'uploader' of undefined in wp-includes/js/media-views.js:5268

See: https://core.trac.wordpress.org/browser/trunk/src/js/media/views/uploader/editor.js?rev=46800#L161

I would expect the classic editor to display an error similar to the one which is being displayed in media modal when attempting to upload a file while not having any available space:

Upload Limit Exceeded
Sorry, you have used your space allocation of 1 MB. Please delete some files to upload more files.

Change History (2)

#1 @sabernhardt
3 years ago

  • Focuses multisite added

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


3 years ago

Note: See TracTickets for help on using tickets.