Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
elsigh
6 years agoHelpful | Level 5
App Folder permission - getting shared_link_access_denied for public shared link URLs?
Note: I just created a new App Key/Secret for my App to - I'm now using the App Folder permission instead of Full Permission (which I believe is way less scary for users to grant permission and appropriate for my App too). This flow used to work with my old App Key/Secret.
I have a shared_link: https://www.dropbox.com/sh/hyt61zo702g3c5c/AACT5_YdGoZiEyYt4yI6Oolaa?dl=0
I can access it without being logged in at all. You should be able to as well.
I have an access token, and make a request to https://api.dropboxapi.com/2/files/list_folder
I get the 4 files in that folder, one of which looks like:
- .tag: "file"
- name: "Amazing Grace.pro"
- id: "id:zY8_f7IMoCgAAAAAAAE7EA"
- client_modified: "2018-04-29T16:52:44Z"
- server_modified: "2018-04-29T16:52:45Z"
- rev: "3ca8a5fcf0"
- size: 1239
- is_downloadable: true
- content_hash: "ec5e7fd14465c71b3979e64cd68cff300c3eecfd8cb1ef72c0d427743350d82f"
So next I make a request to https://content.dropboxapi.com/2/sharing/get_shared_link_file with args:{"url":"https://www.dropbox.com/sh/hyt61zo702g3c5c/AACT5_YdGoZiEyYt4yI6Oolaa?dl=0","path":"/Amazing Grace.pro"}
And I get:
{"error_summary": "shared_link_access_denied/", "error": {".tag": "shared_link_access_denied"}}
[Note: the documentation on http://dropbox.github.io/dropbox-sdk-js/Dropbox.html is missing the type def for the arg to
sharingGetSharedLinkFile]
Greg-DB who's been helpful
9 Replies
Replies have been turned off for this discussion
- Greg-DB6 years ago
Dropbox Community Moderator
Thanks for the report! This looks like this may just be an issue on our side. We'll look into it. I'll follow up here once I have an update on this from the team.
- elsigh6 years agoHelpful | Level 5
Any updates by chance? Confirmation that this is a bug vs by design would help me.
Seems like a punishment for picking a better permission model atm ;)
- Greg-DB6 years ago
Dropbox Community Moderator
I don't have an update on this from the team yet. I'll follow up here once I do.
- mkamalkayani5 years agoExplorer | Level 4
Facing the same error. Any updates?
- Greg-DB5 years ago
Dropbox Community Moderator
mkamalkayani No, unfortunately I don't have an update on this issue to share.
- mkamalkayani5 years agoExplorer | Level 4
Greg-DB I got it working by creating a new app with full access scope.
- akunbeben4 years agoNew member | Level 2
A year after, is there any update on this? @Greg-DB
- Greg-DB4 years ago
Dropbox Community Moderator
akunbeben No, I don't have any news on this.
- Greg-DB2 years ago
Dropbox Community Moderator
Update: the /2/sharing/get_shared_link_metadata and /2/sharing/get_shared_link_file endpoints (and corresponding methods in the SDKs) should now work when using an access token for an app with the app folder access type.
About 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!