Drag and drop uploading should respect multisite max upload size #6154
Labels
[Feature] Media
Anything that impacts the experience of managing media
[Type] Bug
An existing feature does not function as intended
Milestone
Issue Overview
Drag and drop upload doesn't respect the max upload size option in WordPress multisite.
For reference, here's an example of the error in the media library:
In Gutenberg, I'm permitted to upload the same image without error.
Steps to Reproduce (for bugs)
In the network admin, configure "Max upload file size" to be a small-ish number:
Then, try uploading an image of a larger size into Gutenberg.
Expected Behavior
My expected error is to see some equivalent error in the Gutenberg editor. This validation should initially be handled client-side as Plupload, but also handled in the REST API (https://core.trac.wordpress.org/ticket/43751).
In resolving this issue, we'll need to also make sure Gutenberg respects the "Site upload space" option.
The two sitemeta options are
fileupload_maxk
andblog_upload_space
:The text was updated successfully, but these errors were encountered: