cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Help us get a better understanding of what this Community means to you by taking our quick survey over 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: 
1
Ask
2
Reply and help

password protected file via API

password protected file via API

JimRobinson
Explorer | Level 4

I have been unable to download a password protected file using the API,  even with the API explorer.   Specifically the endpoint  /get_shared_link_file  fails with the following message

 

curl -X POST https://content.dropboxapi.com/2/sharing/get_shared_link_file \ --header 'Authorization: Bearer <ACCESS_TOKEN>' \ --header 'Dropbox-API-Arg: {"url":"https://www.dropbox.com/s/OURFILE?dl=0","link_password":"aidenlab"}'

 

The error is

 

{ "error_summary": "shared_link_access_denied/..", "error": { ".tag": "shared_link_access_denied" } }

 

Same link and password work fine with the file metadata endpoint.    Please help, this is a critical function.   I am evaluating Dropbox for a potential medical application and files must be password protected.

4 Replies 4

Re: password protected file via API

Greg-DB
Dropboxer
Thanks for the report! We're looking into it.

By the way, I redacted it from your post, but for the sake of security, you should disable that access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:

https://www.dropbox.com/account/connected_apps

Or, you can disable just this access token using the API:

https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke

Re: password protected file via API

JimRobinson
Explorer | Level 4
Oh thanks, should have deleted that. It was a generated token from the API explorer.

I can send you a link to the actual password protected file I was trying to access if that is helpful, it does not contain any sensitive information.

Re: password protected file via API

Greg-DB
Dropboxer
Thanks! I believe we have enough information, but I'll let you know if we need anything else.

Re: password protected file via API

Greg-DB
Dropboxer

This issue with calling /2/sharing/get_shared_link_file with a password is now fixed and should be working properly.

Apologies for any inconvenience this may have caused, and thanks again for bringing this to our attention.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    JimRobinson Explorer | Level 4
What do Dropbox user levels mean?
Need more support?