[wp-trac] [WordPress Trac] #48778: PDF Upload Bug in 5.3

WordPress Trac noreply at wordpress.org
Fri Nov 29 18:21:15 UTC 2019


#48778: PDF Upload Bug in 5.3
-------------------------------+------------------------------
 Reporter:  cranstantinople    |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:5 digitaldrive]:
 > ''PHP.ini file upload size is default of 2MB and prior to update, the
 same PDF was previously able to be uploaded without issue.''

 There are actually three php.ini settings that affect max upload size:
 `upload_max_filesize`, `post_max_size`, and `memory_limit`. Note that
 `post_max_size` should be "substantially" larger as it affects the total
 size of all files when uploading more than one. In addition `memory_limit`
 should be larger than `post_max_size`.

 > Uploading a test PDF of 1.2 MB throws **HTTP 413 - Payload Too Large**
 response status code.
 > Uploading a test PDF of 0.5MB returns 200 and is successful.

 This sounds like a (perhaps) different error than the original report on
 this ticket. The error here is that the file is not uploaded at all, not
 in post-processing/creating thumbnails.

 Is it possible that some configuration has changed at about the same time
 WP was upgraded to 5.3? Could you try uploading other files that are
 larger than 1MB?

 It is also possible (although unlikely) that the server is configured to
 throw a `HTTP 413` error in some other cases. Perhaps contact your hosting
 company to confirm/rule this out.

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


More information about the wp-trac mailing list