Take Your Search Game to the Next Level with Dropbox Dash  🚀✨ Curious how it works? Ask us here! 

Forum Discussion

perdive's avatar
perdive
New member | Level 2
2 months ago

Wget or Curl is not downloading a folder as expected via the CLI in Linux

I am trying to download a shared folder into a unix server. I first copied that folder to my dropbox and then generated a share link. The link looks something like this:

https://www.dropbox.com/scl/fo/v5xxxxxxx/AB1xxxxxxx?rlkey=123456abc&dl=1

I have tried multiple CLI commands. Some of them are below:

wget  https://www.dropbox.com/scl/fo/v5xxxxxx/AB1xxxxxx?rlkey=12345abc&dl=1

wget  https://www.dropbox.com/scl/fo/v5xxxxxx/AB1xxxxxx?rlkey=12345abc&dl=1 --content-disposition

curl -L -o output.zip https://www.dropbox.com/scl/fo/v5xxxxxx/AB1xxxxxx?rlkey=12345abc&dl=1

None of them download the folder but download some script instead. 

I have tried pasting the URL on the web browser and that works and I can see a ~140GB zipped file starting a download. 

Also, I have also tested TLS connection as I saw in another post that it might have an impact. TLS v1.2 seems to be working in my CLI but not  v1.3. 

Any help is greatly appreciated as I have been stuck on this for so many days now!

 

TIA

1 Reply

  • Jay's avatar
    Jay
    Icon for Dropbox Staff rankDropbox Staff

    Hi perdive, thanks for bringing this to our attention.

    While we don't directly support using a CLI to download files from the Dropbox site, in general, they should work since there isn't any real difference from downloading them when compared to a browser.

    Could you try changing the dl=1 to raw=1 to see if this works in your first example, like so?

    wget https://www.dropbox.com/scl/fo/v5xxxxxx/AB1xxxxxx?rlkey=12345abc&raw=1

    Keep me updated with any progress!

About View, download, and export

Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.

Need more support

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!