cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

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

Adam L.26
Explorer | Level 4

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 1

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

Greg-DB
Dropboxer

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"
Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?