Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Stuart d.8's avatar
Stuart d.8
New member | Level 1
10 years ago

Chunked download via Chooser

If a user uses the dropbox chooser to select a file, in order to copy it to another system, is it possible to use the link to download the file in chunks.

We tried using the range HTTP parameter but it seemed to be ignored and returned the full file.

Also is there a limit to the amount of data that can be returned from the HTTP get?


This is the sort of link we are using ( returned from the chooser)

 

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Using the Range header would be the right way to limit the return size, and download files in chunks.

    The best solution here is to use the "direct" link type, which gives you a direct link to the file content, as opposed to the "preview" link type, as you have in your post. The preview link type gives you a link to a preview page, as opposed to the content itself, so you can't directly use a Range request. You can find more information on the link types here.

    If you can't use the direct link type for some reason (e.g., if the four hour expiration is too short for your app), you can technically make this work with the preview link type. To do so, you can first request the preview link with the dl=1 or raw=1 URL parameter, instead of dl=0, as documented here. Then you can issue a Range request to the returned URL (which should start with https://dl.dropboxusercontent.com/content_link/)

About Dropbox API Support and Feedback

Node avatar for 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!