Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
AndrewRadchenko
7 years agoNew member | Level 2
Upload zip file via Dropbox Api and curl
I'm trying to upload .zip file using dropbox api curl bash script Curl request: curl -X POST https://content.dropboxapi.com/2/files/upload \
--header "Authorization: Bearer <Access Token>" \
...
- 7 years ago
As most of unworking situation, you have to check your code and syntax...
1) file path shall be inside quotes:
--data-binary @"/upload.zip"
2) download path shall start with slash:
curl -X POST https://content.dropboxapi.com/2/files/download \
--header "Authorization: Bearer <Token>" \
--header "Dropbox-API-Arg: {\"path\": \"/directory/upload.zip\"}" >>upload.zipGeneraly it's a good idea to check, if downloaded zip file hase the right file size. If file size is not the same as in local storage so uploading was not finished successfully.
AndrewRadchenko
7 years agoNew member | Level 2
As most of unworking situation, you have to check your code and syntax...
1) file path shall be inside quotes:
--data-binary @"/upload.zip"
2) download path shall start with slash:
curl -X POST https://content.dropboxapi.com/2/files/download \
--header "Authorization: Bearer <Token>" \
--header "Dropbox-API-Arg: {\"path\": \"/directory/upload.zip\"}" >>upload.zip
Generaly it's a good idea to check, if downloaded zip file hase the right file size. If file size is not the same as in local storage so uploading was not finished successfully.
Greg-DB
Dropbox Community Moderator
7 years ago[Cross-linking for reference: https://stackoverflow.com/questions/55776674/upload-zip-file-via-dropbox-api-and-curl ]
I'm glad to see you already worked this out!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!