{"action":"opened","issue":{"url":"https://api.github.com/repos/moxiecode/plupload/issues/1210","labels_url":"https://api.github.com/repos/moxiecode/plupload/issues/1210/labels{/name}","comments_url":"https://api.github.com/repos/moxiecode/plupload/issues/1210/comments","events_url":"https://api.github.com/repos/moxiecode/plupload/issues/1210/events","html_url":"https://github.com/moxiecode/plupload/issues/1210","id":59640181,"number":1210,"title":"flash + chunk needs moxie.js update","user":{"login":"tomtomsen","id":359547,"avatar_url":"https://avatars.githubusercontent.com/u/359547?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomsen","html_url":"https://github.com/tomtomsen","followers_url":"https://api.github.com/users/tomtomsen/followers","following_url":"https://api.github.com/users/tomtomsen/following{/other_user}","gists_url":"https://api.github.com/users/tomtomsen/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomsen/subscriptions","organizations_url":"https://api.github.com/users/tomtomsen/orgs","repos_url":"https://api.github.com/users/tomtomsen/repos","events_url":"https://api.github.com/users/tomtomsen/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomsen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-03T13:19:23Z","updated_at":"2015-03-03T13:19:23Z","closed_at":null,"body":"I am using the current plupload guthub verson. \r\neven if i set the chunk_size option, flash tries to upload the whole file at once. \r\n\r\nto enable file splitting i have to modify moxie.js:8952\r\noriginal:\r\n```\r\n\t\t\tslice_blob: function(value) {\r\n\t\t\t\treturn value && I.mode === 'browser';\r\n\t\t\t},\r\n```\r\nnew:\r\n```\r\n\t\t\tslice_blob: function(value) {\r\n\t\t\t\treturn value && I.mode === 'client';\r\n\t\t\t},\r\n```\r\n\r\nmy config:\r\n```\r\nvar uploader = new plupload.Uploader({\r\n\t\t\t\truntimes : 'flash',\r\n\t\t\t\tbrowse_button : 'pickfiles', // you can pass in id...\r\n\t\t\t\tcontainer: $('container'), // ... or DOM Element itself\r\n\t\t\t\tmax_file_size : '500mb',\r\n\r\n\t\t\t\t// Fake server response here\r\n\t\t\t\t// url : '../upload.php',\r\n\t\t\t\turl: \"http://testpost.postag.intern/~u0121gt/upload/upload.php\",\r\n\r\n\t\t\t\tchunk_size: '2mb',\r\n\t\t\t\tmax_retries: 3,\r\n\r\n\t\t\t\tflash_swf_url : '//rawgithub.com/moxiecode/moxie/master/bin/flash/Moxie.cdn.swf',\r\n\t\t\t\tsilverlight_xap_url : '//rawgithub.com/moxiecode/moxie/master/bin/silverlight/Moxie.cdn.xap',\r\n\t\t\t\tfilters : [\r\n\t\t\t\t\t{title : \"Image files\", extensions : \"jpg,gif,png\"},\r\n\t\t\t\t\t{title : \"Zip files\", extensions : \"zip\"}\r\n\t\t\t\t],\r\n\r\n\t\t\t\tinit: {\r\n\t\t\t\t\tPostInit: function() {\r\n\t\t\t\t\t\t$('filelist').innerHTML = '';\r\n\r\n\t\t\t\t\t\t$('uploadfiles').onclick = function() {\r\n\t\t\t\t\t\t\tuploader.start();\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t},\r\n\r\n\t\t\t\t\tFilesAdded: function(up, files) {\r\n\t\t\t\t\t\tplupload.each(files, function(file) {\r\n\t\t\t\t\t\t\t$('filelist').innerHTML += '<div id=\"' + file.id + '\">' + file.name + ' (' + plupload.formatSize(file.size) + ') <b></b></div>';\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},\r\n\r\n\t\t\t\t\tUploadProgress: function(up, file) {\r\n\t\t\t\t\t\t$(file.id).getElementsByTagName('b')[0].innerHTML = '<span>' + file.percent + \"%</span>\";\r\n\t\t\t\t\t},\r\n\r\n\t\t\t\t\tError: function(up, err) {\r\n\t\t\t\t\t\t$('console').innerHTML += \"\\nError #\" + err.code + \": \" + err.message;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n```"}}