cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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

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

View solution in original post

Who's talking

Top contributors to this post

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