cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We're looking to hear about your experience when using Dropbox in a web browser. What parts of Dropbox feels very slow to you and takes a lot of time to get done? What are you trying to do in the Dropbox web browser when you experience slowness? Tell us right 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: 
1
Ask
2
Comments

Convert file URL from CreateSharedLinkAsync to dropbox file path

Convert file URL from CreateSharedLinkAsync to dropbox file path

AlexZi
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

Re: Convert file URL from CreateSharedLinkAsync to dropbox file path

Greg-DB
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

Re: Convert file URL from CreateSharedLinkAsync to dropbox file path

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

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?