{"action":"closed","issue":{"url":"https://api.github.com/repos/pillarjs/multiparty/issues/139","repository_url":"https://api.github.com/repos/pillarjs/multiparty","labels_url":"https://api.github.com/repos/pillarjs/multiparty/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/pillarjs/multiparty/issues/139/comments","events_url":"https://api.github.com/repos/pillarjs/multiparty/issues/139/events","html_url":"https://github.com/pillarjs/multiparty/issues/139","id":150949815,"number":139,"title":"Stream file size read incorrectly","user":{"login":"crobinson42","id":5973579,"avatar_url":"https://avatars0.githubusercontent.com/u/5973579?v=3","gravatar_id":"","url":"https://api.github.com/users/crobinson42","html_url":"https://github.com/crobinson42","followers_url":"https://api.github.com/users/crobinson42/followers","following_url":"https://api.github.com/users/crobinson42/following{/other_user}","gists_url":"https://api.github.com/users/crobinson42/gists{/gist_id}","starred_url":"https://api.github.com/users/crobinson42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crobinson42/subscriptions","organizations_url":"https://api.github.com/users/crobinson42/orgs","repos_url":"https://api.github.com/users/crobinson42/repos","events_url":"https://api.github.com/users/crobinson42/events{/privacy}","received_events_url":"https://api.github.com/users/crobinson42/received_events","type":"User","site_admin":false},"labels":[{"id":564327168,"url":"https://api.github.com/repos/pillarjs/multiparty/labels/awaiting%20more%20info","name":"awaiting more info","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-04-25T18:51:15Z","updated_at":"2017-03-27T20:00:35Z","closed_at":"2017-03-27T20:00:35Z","body":"We're experiencing an issue with the file size being incorrect for the FIRST file when multiple files are uploaded. The issue can be reference here: https://github.com/balderdashy/skipper/issues/109\n\nBasically, the first file size `stream.byteCount` is the aggregate size of all the files in the upload request. Then, all following file sizes are accurate on `stream.byteCount` after the first file stream. (NOTE: this happens when we use the same key when uploading multiple files)\n\nHere is a `console.log` from index line 502 of the headers:\n\n```\nFileupload, multiparty headers:\n{ 'content-disposition': 'form-data; name=\"file\"; filename=\"IMG_20151110_0001.pdf\"',\n  'content-type': 'application/pdf' }\nFileupload, multiparty headers:\n{ 'content-disposition': 'form-data; name=\"file\"; filename=\"Farnsworth Resume 2015.docx\"',\n  'content-type': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' }\n```\n\nThis behavior exists in the current v4.1.2 w/ node v4.4.0\n"}}
{"actor":{"display_login":"crobinson42"}}