{"id":24,"date":"2016-07-08T15:12:00","date_gmt":"2016-07-08T19:12:00","guid":{"rendered":"https:\/\/kimsal.com\/blog\/?p=24"},"modified":"2016-07-08T15:12:00","modified_gmt":"2016-07-08T19:12:00","slug":"chunked-file-uploads-with-plupload","status":"publish","type":"post","link":"https:\/\/kimsal.com\/blog\/2016\/07\/08\/chunked-file-uploads-with-plupload\/","title":{"rendered":"chunked file uploads with plupload"},"content":{"rendered":"\n<p>Holy tamole\u2026<\/p>\n\n\n\n<p>Have been wrestling with a client project using \u2018plupload\u2019 with a user base consistently uploading files from 150-500meg on a daily basis. They\u2019d been uploading to youtube\/vimeo mostly, because the experience with the older uploader (still plupload earlier version) was bad \u2013 slow, mostly, but some issues about determining whether items were uploaded\/processed correctly (files sent to third party for processing).<\/p>\n\n\n\n<p>Joined a project and the other dev had been working on a revamp, and had put some new things in place to help with logging\/notifications\/etc, but as we rolled it out to the main production site today, word had come back that \u201cthis is still really slow\u201d.<\/p>\n\n\n\n<p>I\u2019ve only got 5mpbs up at the office, so it was hard for me to judge\/test. Working with the PM, who had much faster upload, we tested a 344meg file. We got about 9:40 upload time. Ugh\u2026<\/p>\n\n\n\n<p>Spent a lot of time looking at lots of potential issues \u2013 any network throttling? Any firewall stuff? Error logs? Apache settings? Dug deeper and noticed that \u2018chunk_size\u2019 in plupload was set to 1m. Hrmm\u2026. let\u2019s change that to 5m.<\/p>\n\n\n\n<p>Tested upload again, and got 5:12. Changed to 8m, got 4:40. Changed to 10m, got 4:39. Uploaded same file on vimeo.com and got 4:32, so we\u2019re definitely in the ballpark on what the end users are accustomed to.<\/p>\n\n\n\n<p>Whew\u2026 case solved\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Holy tamole\u2026 Have been wrestling with a client project using \u2018plupload\u2019 with a user base consistently uploading files from 150-500meg on a daily basis. They\u2019d been uploading to youtube\/vimeo mostly, because the experience with the older uploader (still plupload earlier version) was bad \u2013 slow, mostly, but some issues about determining whether items were uploaded\/processed&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kimsal.com\/blog\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}