You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Olaf B.2's avatar
Olaf B.2
New member | Level 2
9 years ago

downloading a large file using python v2 API

Dear Dropboxers, would it be possible to see an example for large file download, equivalent to https://www.dropboxforum.com/hc/en-us/community/posts/205544836-python-upload-big-file-example for the...
  • Greg-DB's avatar
    9 years ago

    It is already implemented in the Java SDK

    (It is also implemented in the API v1 Python client, but I can't recommend using that as it's deprecated.)

    If you wanted to implement it manually, or modify the Python SDK, here's a sample of what it would look like in curl for reference:

    curl -X POST https://content.dropboxapi.com/2/files/download \
    --header "Authorization: Bearer ACCESS_TOKEN" \
    --header "Dropbox-API-Arg: {\"path\": \"/test.txt\"}" \
    --header "Range:bytes=0-2"

    That would download just the first 3 bytes of the file at /test.txt.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 4 hours ago
333 Following

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 or Facebook.

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!