We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

Adam L.26's avatar
Adam L.26
Explorer | Level 4
8 years ago

Does server close the connection once download a file over 90 minutes?

Hi,

 

I have a 50GB file in my dropbox but I can't download whole file with download API over a month, the connection always been closed after 90min but my download process works fine on other files (only few GB)

 

Is it any limitation about the connection? maybe it will automatically closed after 90 min or something else? Thanks.

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    HTTPS connections can time out, so to download large files, I recommend using "Range Retrieval Requests" to download in pieces. For example, issuing such a request to download the first 1000 bytes of a file using /2/files/download would look like:

     

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

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,034 PostsLatest Activity: 9 minutes ago
409 Following

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 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!