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

Can I upload local file using PUT metod? #345

Open
bastikus opened this issue Oct 27, 2020 · 0 comments
Open

Can I upload local file using PUT metod? #345

bastikus opened this issue Oct 27, 2020 · 0 comments

Comments

@bastikus
Copy link

I type in "Body" field is "@s:\Book\Guide.pdf"

Example of Curl command:
curl -X PUT -k -H 'Authorization: HCP YmFzdGlr:f7c2a26b639e62390dd1d12e0481b8e7' -H 'Content-Type: application/pdf' -i 'https://data.box.store.example.com/rest/book/Guide.pdf' --data '@s:\Book\Guide.pdf'

I get Status Code: 201 Created
But file zero size.

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