Forum Discussion

Saar A.'s avatar
Saar A.
Explorer | Level 4
9 years ago
Solved

preview_url vs url

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

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

6 Replies

Replies have been turned off for this discussion
  • Saar A.'s avatar
    Saar A.
    Explorer | Level 4
    9 years ago

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

     

    Thanks!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago

    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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    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.'s avatar
    Saar A.
    Explorer | Level 4
    9 years ago

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

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    No, I don't have a timeline to share.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!