Forum Discussion

New_Horizons's avatar
New_Horizons
Explorer | Level 4
8 years ago
Solved

Download file

Hello!

 

I shared the folder:

 

Got the file id using the method:

/files/list_folder

I'm trying to download a file by id:

 

curl -X POST https://content.dropboxapi.com/2/files/download \
  --header 'Authorization: Bearer <<api_token>>' \
  --header 'Dropbox-API-Arg: {"path":"id:xRv0UGd0k-AAAAAAAAACgA"}' 

The file is downloaded without problems.

 

 

 

I have a link to another folder

 

Got the file id using the method:

/files/list_folder

I'm trying to download a file by id:

curl -X POST https://content.dropboxapi.com/2/files/download \
  --header 'Authorization: Bearer <<api_token>>' \
  --header 'Dropbox-API-Arg: {"path":"id:07Db0pnr9jAAAAAAAAAD8g"}' 

Download file does not work:

 

{"error_summary": "path/not_found/..", "error": {".tag": "path", "path": {".tag": "not_found"}}}

 

What could be the reason?

 

I need: Download the file "Прайс DAYSTAR NEW от 30.07 .xlsx" from the link

 

How is this best done?

Thank you.

 

P.S. I used google translate) Sorry.

 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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!