Forum Discussion

mukund's avatar
mukund
Explorer | Level 3
5 years ago

Unable to download received file using my user-token

I have tried to download file which is shared to me using the user-token, Passed id of that file to download api but returns me error as 

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

Is there any other way to download the files which are shared to me?

1 Reply

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

    The /2/files/download endpoint can only download files in the connected account. "Received" files, such as listed by /2/sharing/list_received_files, aren't mounted in the connected account, and so cannot be downloaded that way.

     

    You can instead use /2/sharing/get_shared_link_file and pass in the "preview_url" as the "url" though.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with 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!