You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

LarisaMoroz's avatar
LarisaMoroz
New member | Level 2
5 years ago

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
    5 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. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,911 PostsLatest Activity: 5 hours ago
333 Following

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 or Facebook.

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!