[wp-trac] [WordPress Trac] #49894: Drag & Drop image upload error on multisite install when no upload space available

WordPress Trac noreply at wordpress.org
Mon Apr 13 13:19:19 UTC 2020


#49894: Drag & Drop image upload error on multisite install when no upload space
available
----------------------------+-----------------------------
 Reporter:  david.binda     |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Editor          |    Version:
 Severity:  normal          |   Keywords:
  Focuses:  ui, javascript  |
----------------------------+-----------------------------
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49894>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list