amazon response is hanging. waiting on response for Automattic/knox#162
Hi @superjoe30. I am also having issues with knox and S3 after using your S3 example code. You can take a look at this gist. The upload code starts at line 68. I've also posted this issue on Automattic/knox#116 (comment). I am using Node 0.10.4 / Knox 0.7.0 / Muliparty 2.1.5
part.byteCount is only guaranteed to be valid if it is the last part in the request. can you post the form that you're using?
<form action="/" enctype="multipart/form-data" method="post" id="form_upload" target="iframe_upload">
<div class="control-group file optional">
<input class="file optional" id="upload-file" name="upload" type="file"><br/>
<input class="" id="upload-path" name="path" type="text"><br/>
<span id="upload_error"></span><span id="upload_percentage"></span>
<iframe id="iframe_upload" name="iframe_upload" style="display:none; width:0px;height:0px;border:0px;"></iframe>
The form is submitted using jquery's form.submit() in case this is interesting somehow.
Right, so as I said, the file must be the last part in the request.
See docs for part.byteCount: https://github.com/superjoe30/node-multiparty#part-part
Yep. That did it. Thanks for the help @superjoe30. Greatly appreciated!