cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Cannot obtain download links for files in public shared folder

New member | Level 2
New member | Level 2

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?

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Cannot obtain download links for files in public shared folder

Dropboxer
Dropboxer

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. 

View solution in original post

6 Replies 6
Highlighted

Re: Cannot obtain download links for files in public shared folder

Super Collaborator | Level 20
Highlighted

Re: Cannot obtain download links for files in public shared folder

New member | Level 2
New member | Level 2

I don't see direct download link or path to a file n the result of call sharing/get_shared_link_file   like I see at webpage of shared folder.

There are just meta-information and again, url to the shared folder.
I don't need to download each photo, but only provide links to download some of them to other web-application.

When I click on any photo in the page: https://www.dropbox.com/sh/saudciiyp40kjr5/AACG9UCNAtsy0WMxuX82xGLma?dl=0 — I see that path in address bar changed, for example, to https://www.dropbox.com/sh/saudciiyp40kjr5/AACQtgXfdbKhNXwLG7Ki7xqya/391111_04.jpg?dl=1 and then I can just replace dl=0 to dl=1 and provide this url next.


But when I use API, how can I obtain this part of file's url: saudciiyp40kjr5/AACQtgXfdbKhNXwLG7Ki7xqya  to make downloadable link from it?

 

Highlighted

Re: Cannot obtain download links for files in public shared folder

Super Collaborator | Level 20

Seems the feature you ask for is unavailable (or deprecated for some reason -don't ask me why). Possible workaround is using https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_... for every one file.

Highlighted

Re: Cannot obtain download links for files in public shared folder

New member | Level 2
New member | Level 2

Thank you.
But sharing/create_shared_link_with_settings requires path parameter, which I don't have.
The shared folder is not mine. I have only url

Highlighted

Re: Cannot obtain download links for files in public shared folder

Super Collaborator | Level 20

Ohh... I misunderstood. In such a case, I don't know any useful move. @Greg K. might provide some workaround or, at least, accepts the above as a feature request.

Good luck.

Highlighted

Re: Cannot obtain download links for files in public shared folder

Dropboxer
Dropboxer

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. 

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?