cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Do you have an idea for Dropbox Paper? Share it with us here!

Convert file URL from CreateSharedLinkAsync to dropbox file path

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

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

Reply
Loading...
1 Reply

Re: Convert file URL from CreateSharedLinkAsync to dropbox file path

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

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post