You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Sapu21's avatar
Sapu21
Explorer | Level 3
11 months ago

Could not get preview url while searching for preview urls

I am trying to search dropbox files inside my application. Although I am bale to find the folders and the files there is no way I can get the preview url of them so that I can redirect the user to th...
  • iNeil's avatar
    iNeil
    11 months ago

    Sapu21 , the 'preview_url' is only available for shared items. It won’t be possible to retrieve a preview_url if the folder or file is not shared. Once you share the folder or file, the preview_url will be provided in the metadata within the response object.

    A workaround for this case would be implementing the 2/sharing/create_shared_link_with_settings endpoint to create a shared link to your file or folder. If you use the settings parameter with the value 'audience: no_one', this will set the link so that it can't be used by anyone. The link will only direct the user to the content and will not grant additional rights to the user.