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

Gateway composite file add #1845

Closed
wants to merge 7 commits into from
Closed

Conversation

rht
Copy link
Contributor

@rht rht commented Oct 15, 2015

@whyrusleeping
Copy link
Member

hmm... two panics in the failed test, neither appear to be related to this PR. but the second one seems like an actual problem.

@rht
Copy link
Contributor Author

rht commented Oct 16, 2015

@cryptix this should have been in putHandler?

@rht rht force-pushed the gateway-multipart-add branch 2 times, most recently from 382381d to 82c0bf0 Compare October 16, 2015 12:14
@rht
Copy link
Contributor Author

rht commented Oct 16, 2015

@whyrusleeping panic test (the stalled build one) once again.

@cryptix
Copy link
Contributor

cryptix commented Oct 16, 2015

The original put handler took json similar too "ipfs object put"

@cryptix cryptix mentioned this pull request Oct 23, 2015
@rht rht force-pushed the gateway-multipart-add branch 2 times, most recently from 2c629a3 to 950b41a Compare November 13, 2015 08:42
@ghost ghost added the topic/gateway Topic gateway label Dec 22, 2015
@prusnak
Copy link
Contributor

prusnak commented Jan 10, 2016

What is the state of this?

@rht
Copy link
Contributor Author

rht commented Jan 15, 2016

this needs test

@prusnak
Copy link
Contributor

prusnak commented Jan 15, 2016

What do you mean by test? Should I grab your branch and test if it works? Or should we rebase on top of ipfs:dev0.4.0 and test this?

@rht
Copy link
Contributor Author

rht commented Jan 15, 2016

Test as in sharness test to make sure the POST multipart work. Currently making it.

The current master is already 0.4.0.

@prusnak
Copy link
Contributor

prusnak commented Jan 15, 2016

Cool! Let me know if I can help somehow. Would love to see this feature
merged in soon.

Best Regards / S pozdravom,

Pavol Rusnak stick@gk2.sk

On Fri, Jan 15, 2016, at 03:17 PM, rht wrote:

Test as in sharness test to make sure the POST multipart work. Currently making it.

The current master is already 0.4.0.


Reply to this email directly or view it on GitHub[1].

Links:

  1. Gateway composite file add #1845 (comment)

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
@GitCop
Copy link

GitCop commented Jan 15, 2016

There were the following issues with your Pull Request

  • Commit: c242660
    • Invalid signoff. Commit message must end with
      License: MIT
      Signed-off-by: .* <.*>
  • Commit: 38a600b
    • Invalid signoff. Commit message must end with
      License: MIT
      Signed-off-by: .* <.*>

We ask for a few features in the commit message for Open Source licensing hygiene and commit message clarity.
git commit --amend can often help you quickly improve the commit message.
Guidelines and a script are available to help in the long run.
Your feedback on GitCop is welcome on this issue.


This message was auto-generated by https://gitcop.com

@rht
Copy link
Contributor Author

rht commented Jan 15, 2016

@prusnak figuring out how to use curl POST that is also specified in rfc1867 and updating the api documentation in https://github.com/ipfs/js-ipfs-api/blob/master/README.md (this has the multipart/form-data example, but only for a single file).

I have fixed the merge conflicts in #2205.

@rht rht closed this Jan 15, 2016
@rht
Copy link
Contributor Author

rht commented Jan 15, 2016

I'm using this for multiple files POST: https://github.com/ipfs/go-ipfs/pull/2205/files#diff-cbe32203deec9b995950e3110e5db668R69. But there should be a tool that auto-convert file arguments / directory into a multipart form for curl?

@prusnak
Copy link
Contributor

prusnak commented Jan 15, 2016

Does master already support single file upload using curl -X POST --data-binary @infile "$URL"?

@rht
Copy link
Contributor Author

rht commented Jan 15, 2016

@prusnak
Copy link
Contributor

prusnak commented Jan 15, 2016

Great, I just tested it at it works. Wohooo!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/in-progress In progress topic/gateway Topic gateway
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants