[wp-trac] [WordPress Trac] #38522: HTTP Errors on Upload with Certain PDFs

WordPress Trac noreply at wordpress.org
Sat Nov 19 00:26:09 UTC 2016


#38522: HTTP Errors on Upload with Certain PDFs
---------------------------+---------------------------
 Reporter:  mikeschroder   |       Owner:  mikeschroder
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.7
Component:  Media          |     Version:  trunk
 Severity:  normal         |  Resolution:  fixed
 Keywords:  needs-testing  |     Focuses:
---------------------------+---------------------------

Comment (by dglingren):

 I ran more tests with the Beta 4 release and I can generate HTTP errors on
 almost every upload. I edited /wp-includes/js/heartbeat.js to reduce the
 time between heartbeat requests from 60 seconds to 6 seconds, changing
 line 52:

         // Connect interval (in seconds)
         mainInterval: 6,
 Then, I went to the Media/Add New admin screen and dragged/dropped two (or
 more) PDF files into the upload area. If a heartbeat request overlaps with
 the upload and thumbnail generation process the HTTP error usually
 follows.

 I am still getting duplicate items in about half of the failure cases, but
 I am willing to let that go.

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


More information about the wp-trac mailing list