[wp-trac] [WordPress Trac] #48542: Uploading a large image through the block editor fails

WordPress Trac noreply at wordpress.org
Sun Nov 10 19:54:50 UTC 2019


#48542: Uploading a large image through the block editor fails
-------------------------------------+---------------------
 Reporter:  azaozz                   |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  highest omg bbq          |   Milestone:  5.3
Component:  Editor                   |     Version:  trunk
 Severity:  blocker                  |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+---------------------
Changes (by azaozz):

 * keywords:  needs-patch => has-patch needs-testing


Comment:

 In 48542.diff: move `wp.apiFetch.createRootURLMiddleware()` before
 `wp.apiFetch.use( wp.apiFetch.mediaUploadMiddleware );` as suggested on
 Slack: https://wordpress.slack.com/archives/C02RQC26G/p1573247239138300.

 The alternative solution of doing `apiFetch()` instead of `next()` in
 `/middlewares/media-upload.js` seems perhaps riskier change at this point.

 Thanks @mikeschroder, @TimothyBlynJacobs, and @epiqueras for looking at
 this asap :)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48542#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list