cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We just wanted to say thank you! Check out our customer appreciation video here.

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: 

Convert file URL from CreateSharedLinkAsync to dropbox file path

Convert file URL from CreateSharedLinkAsync to dropbox file path

AlexZi
New member | Level 2
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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

Greg-DB
Dropbox Staff
Go to solution

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

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?