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

Uploading file in a complex object #320

Open
marino-mrc opened this issue Dec 13, 2021 · 0 comments
Open

Uploading file in a complex object #320

marino-mrc opened this issue Dec 13, 2021 · 0 comments

Comments

@marino-mrc
Copy link

Hi,
I'm trying to reproduce the following curl command using toolbelt:

curl --include -X POST --form "instance[name]=Test Instance" --form "instance[file]=@testfile" http://192.168.122.127:3002/instances

Basically I have a "nested" dictionary with a file inside it:
{ 'instance': { 'name': "Test Instance", 'file': @testfile}

Please, can you share an example on how to do this?
Thank you.
Marco

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant