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

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: 
Highlighted

Convert file URL from CreateSharedLinkAsync to dropbox file path

New member | Level 2
New member | Level 2

I have dropbox account with big amount of files, stored in different folders. Also i have a database (local) which store a links to files in my dropbox, uploaded by api methods. Links are created by CreateSharedLinkAsync API method. Is it possible to convert this links backward to file location, used in UploadAsync API method ? I mean recover file path from direct link.

1 Accepted Solution

Accepted Solutions
Highlighted

Re: Convert file URL from CreateSharedLinkAsync to dropbox file path

Dropboxer
Dropboxer

Yes, you can supply the shared link to GetSharedLinkMetadataAsync to get the SharedLinkMetadata.PathLower value back. (The access token needs to be for the same account as the one that owns the shared link. Otherwise, the value won't be present.)

View solution in original post

1 Reply 1
Highlighted

Re: Convert file URL from CreateSharedLinkAsync to dropbox file path

Dropboxer
Dropboxer

Yes, you can supply the shared link to GetSharedLinkMetadataAsync to get the SharedLinkMetadata.PathLower value back. (The access token needs to be for the same account as the one that owns the shared link. Otherwise, the value won't be present.)

View solution in original post

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

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?