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

Forum Discussion

LarisaMoroz's avatar
LarisaMoroz
New member | Level 2
6 years ago
Solved

Cannot obtain download links for files in public shared folder

Hello.

I have a link to a shared folder with thousands of photos:
https://www.dropbox.com/sh/saudciiyp40kjr5/AACG9UCNAtsy0WMxuX82xGLma?dl=0

I can see and download any of them from browser without authentication, even as guest.

I need to provide download links for some of them to other application.

In my app, which has "Full Dropbox" permission type, 
I'm able to use files/list_folder API call to get list of files in the folder (I use  shared_link => url parameter instead of path ).

But the list doesn't contain download links for photos.
Path information also does not provided.

When I'm trying to use shared/get_file_metadata API call with any files id ( id:iTdyj36XZGAAAAAAAACN0A for example) I recieve error :

{ 
"error_summary": "access_error/invalid_file/...", 
"error": { ".tag": "access_error", "access_error": { ".tag": "invalid_file" } } 
}

On files/get_metadata   I receive error: 

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



So, how I can obtain these download links for photos in the shared folder?

  • Greg-DB's avatar
    Greg-DB
    6 years ago

    I'm afraid that's correct; there unfortunately isn't a way to do exactly what you want to do here. While you can retrieve the metadata and file content for a particular file from a shared link for a folder like this using /2/sharing/get_shared_link_file as mentioned, the Dropbox API doesn't offer a way to retrieve the download link. I'll pass this along as a feature request, but I can't promise if or when that might be implemented. 

7 Replies

Replies have been turned off for this discussion