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

WordPress Trac noreply at wordpress.org
Sun Nov 10 21:02:23 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:
-------------------------------------+---------------------

Comment (by johnbillion):

 I reproduced the issue with the Pizigani_1367_Chart_10MB.jpg image locally
 and saw the `Media upload failed` error message due to a 500 response from
 `wp-json/wp/v2/media?_locale=user` and the successive 404s from
 `wp/v2/media/141/post-process?_locale=user`.

 After applying [attachment:"48542.diff"], the request to `wp-
 json/wp/v2/media?_locale=user` still returns a 500 as expected, but the
 subsequent request to `wp-json/wp/v2/media?_locale=user` now uses the
 correct URL and returns a 200. The image appears as expected and the image
 sizes are all generated correctly.

 I'm unable to assess whether the fix is a technically good one, but I can
 confirm that it fixes the issue.

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


More information about the wp-trac mailing list