Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with s3 example #2

Closed
andrewrk opened this issue Apr 4, 2013 · 7 comments
Closed

problem with s3 example #2

andrewrk opened this issue Apr 4, 2013 · 7 comments
Labels

Comments

@andrewrk
Copy link
Collaborator

andrewrk commented Apr 4, 2013

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

@andrewrk
Copy link
Collaborator Author

andrewrk commented Apr 5, 2013

fixed now.

@andrewrk andrewrk closed this as completed Apr 5, 2013
@gabceb
Copy link

gabceb commented Apr 19, 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

@andrewrk
Copy link
Collaborator Author

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?

@gabceb
Copy link

gabceb commented Apr 19, 2013

<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>
        </div>
    </div>
</form>
<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.

@andrewrk
Copy link
Collaborator Author

Right, so as I said, the file must be the last part in the request.

@andrewrk
Copy link
Collaborator Author

See docs for part.byteCount: https://github.com/superjoe30/node-multiparty#part-part

@gabceb
Copy link

gabceb commented Apr 19, 2013

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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants