<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: generate file preview link in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366989#M20782</link>
    <description>&lt;P&gt;I'm not sure I follow your question. For reference:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt; endpoint can be used to create a shared link for any type of file. The shared link page by default will show a preview of the file if possible. E.g., it can display a preview of the relevant text, image, PDF, etc., depending on the type of the linked file. If you &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;modify the link&lt;/A&gt; for direct access, it will return the original file data.&lt;/LI&gt;
&lt;LI&gt;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt; endpoint returns a temporary link that will just return the original file data.&lt;/LI&gt;
&lt;LI&gt;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_self"&gt;/2/files/get_preview&lt;/A&gt; endpoint will directly PDF or HTML preview data directly, as determined by the supported file types covered in the documentation.&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 25 Sep 2019 13:34:38 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2019-09-25T13:34:38Z</dc:date>
    <item>
      <title>generate file preview link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366740#M20776</link>
      <description>&lt;P&gt;How can we generate a preview link for a file and use that link to display the file in our web app? can we also attach link expiry&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 09:35:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366740#M20776</guid>
      <dc:creator>rajshree1996</dc:creator>
      <dc:date>2019-09-24T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: generate file preview link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366772#M20778</link>
      <description>&lt;P&gt;There are a few different options that you may want to try:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You can use&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt; to create a shared link for any file, and set an expiration (if the account is on a Professional or Business plan). You can also &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;modify these links for different behaviors&lt;/A&gt;.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;You can use&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt; to get a direct temporary link to any file data, but the expiration is always set to four hours.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;By the way, those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation" target="_self"&gt;https://www.dropbox.com/developers/documentation&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Those have corresponding native methods for the HTTPS endpoints.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 11:11:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366772#M20778</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-24T11:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: generate file preview link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366785#M20779</link>
      <description>&lt;P&gt;2 solution works.&lt;/P&gt;&lt;P&gt;when trying the first one I am getting the unauthorized error in API explorer when I add expires in settings.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{ "&lt;/SPAN&gt;&lt;SPAN class="hljs-attribute"&gt;error_summary&lt;/SPAN&gt;&lt;SPAN&gt;": &lt;/SPAN&gt;&lt;SPAN class="hljs-value"&gt;&lt;SPAN class="hljs-string"&gt;"settings_error/not_authorized/"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;, "&lt;/SPAN&gt;&lt;SPAN class="hljs-attribute"&gt;error&lt;/SPAN&gt;&lt;SPAN&gt;": &lt;/SPAN&gt;&lt;SPAN class="hljs-value"&gt;{ "&lt;SPAN class="hljs-attribute"&gt;.tag&lt;/SPAN&gt;": &lt;SPAN class="hljs-string"&gt;"settings_error"&lt;/SPAN&gt;, "&lt;SPAN class="hljs-attribute"&gt;settings_error&lt;/SPAN&gt;": { "&lt;SPAN class="hljs-attribute"&gt;.tag&lt;/SPAN&gt;": &lt;SPAN class="hljs-string"&gt;"not_authorized"&lt;/SPAN&gt; } } &lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If I don'nt use settings object then it is giving me the expected response.&lt;IMG src="https://www.dropboxforum.com/t5/image/serverpage/image-id/11121i799B47997CF8ABCC/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Screenshot from 2019-09-24 17-04-33.png" title="Screenshot from 2019-09-24 17-04-33.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 11:37:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366785#M20779</guid>
      <dc:creator>rajshree1996</dc:creator>
      <dc:date>2019-09-24T11:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: generate file preview link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366827#M20780</link>
      <description>&lt;P&gt;The &lt;A href="https://help.dropbox.com/files-folders/share/link-expiration" target="_self"&gt;shared link expiration functionality&lt;/A&gt; is only available to&amp;nbsp;Dropbox Professional and Business accounts. Attempting to set an expiration from other account types will fail like that.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 15:35:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366827#M20780</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-24T15:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: generate file preview link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366971#M20781</link>
      <description>&lt;P&gt;can't we generate the image preview for all file types?&lt;/P&gt;&lt;P&gt;It seems previews will be of the same type as file. pdf preview link will preview a pdf only.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 10:57:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366971#M20781</guid>
      <dc:creator>rajshree1996</dc:creator>
      <dc:date>2019-09-25T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: generate file preview link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366989#M20782</link>
      <description>&lt;P&gt;I'm not sure I follow your question. For reference:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings" target="_self"&gt;/2/sharing/create_shared_link_with_settings&lt;/A&gt; endpoint can be used to create a shared link for any type of file. The shared link page by default will show a preview of the file if possible. E.g., it can display a preview of the relevant text, image, PDF, etc., depending on the type of the linked file. If you &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;modify the link&lt;/A&gt; for direct access, it will return the original file data.&lt;/LI&gt;
&lt;LI&gt;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_temporary_link" target="_self"&gt;/2/files/get_temporary_link&lt;/A&gt; endpoint returns a temporary link that will just return the original file data.&lt;/LI&gt;
&lt;LI&gt;The&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-get_preview" target="_self"&gt;/2/files/get_preview&lt;/A&gt; endpoint will directly PDF or HTML preview data directly, as determined by the supported file types covered in the documentation.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:34:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/generate-file-preview-link/m-p/366989#M20782</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-09-25T13:34:38Z</dc:date>
    </item>
  </channel>
</rss>

