cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App 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: 

preview_url vs url

preview_url vs url

Saar A.
Explorer | Level 4
Go to solution

Hi,

 

Could you please exaplain what is the differnce between preview_url and url field?

 

Both of them are returned from the call sharing/get_file_metadata.

The url field is part of the link_metadata (is this feature is still unreleased?)

The value in both fields is the same.

 

Thanks,

Saar

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
That feature is in the process of being rolled out, so it will be set for some users and not others. The field is marked optional, so make sure your app doesn't rely on it being set.

View solution in original post

6 Replies 6

Saar A.
Explorer | Level 4
Go to solution

Please refer to the question if "link_metadata" is released for "sharing/get_file_metadata".

 

Thanks!

Greg-DB
Dropbox Staff
Go to solution

It sounds like you're referring to the response from /2/sharing/get_file_metadata. That endpoint is released and is not in preview/beta, so you can use it in production.

 

The SharedFileMetadata.preview_url is documented as "URL for displaying a web preview of the shared file."

 

The SharedFileMetadata.link_metadata.url is documented as the "The URL of the link."

 

The former is for the shared file itself, and the latter is referring to the link for the shared file in particular. The URL may be the same for both fields.

Saar A.
Explorer | Level 4
Go to solution

Thanks for the response.

 

In the documentation for this endpoint, https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_file_metadata, it is mentioned particulary for the field "link_metadata" that - "this is for an unreleased feature so it may not be returned yet".

Is this field valid for use now?

Greg-DB
Dropbox Staff
Go to solution
That feature is in the process of being rolled out, so it will be set for some users and not others. The field is marked optional, so make sure your app doesn't rely on it being set.

Saar A.
Explorer | Level 4
Go to solution

Do you know when it will be available for all users?

Greg-DB
Dropbox Staff
Go to solution
No, I don't have a timeline to share.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Saar A. Explorer | Level 4
What do Dropbox user levels mean?