problem with s3 example #2

andrewrk opened this Issue Apr 4, 2013 · 7 comments

2 participants


amazon response is hanging. waiting on response for Automattic/knox#162


fixed now.

@andrewrk andrewrk closed this Apr 5, 2013

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">
        <div class="controls">
            <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.


Yep. That did it. Thanks for the help @superjoe30. Greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment