Opened 6 years ago
Last modified 6 years ago
#49894 new defect (bug)
Drag & Drop image upload error on multisite install when no upload space available
| Reported by: | david.binda | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Editor | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: | ui, javascript, multisite |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)