WordPress.org

Make WordPress Core

Opened 4 months ago

#49894 new defect (bug)

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

Reported by: david.binda Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: ui, javascript 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 (0)

Note: See TracTickets for help on using tickets.