Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
wayne606
7 years agoNew member | Level 2
can't upload files with curl
I am trying to upload files with curl. Based on community advice I think this should be correct: curl -X POST https://content.dropboxapi.com/2/files/upload \ --header "Authorization: Bearer...
- 7 years ago
Yes, /2/files/upload only supports files up to 150 MB. For larger files, use upload sessions.
Greg-DB
Dropbox Community Moderator
7 years agoThat code looks correct, and it's working for me. (Browsing there in a browser isn't supposed to work.)
Is this the exact code you're running? Can you share the full code/output? (Just be sure to redact the access token of course.) You can also add a "-v" flag to tell curl to show verbose output.
Is this the exact code you're running? Can you share the full code/output? (Just be sure to redact the access token of course.) You can also add a "-v" flag to tell curl to show verbose output.
wayne606
7 years agoNew member | Level 2
Intersting, now that I look at the output in more detail I see
< HTTP/1.1 413 Request Entity Too Large
This is a 2.3GB file. Should I be uploading this in a different way?
- Greg-DB7 years ago
Dropbox Community Moderator
Yes, /2/files/upload only supports files up to 150 MB. For larger files, use upload sessions.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!