<?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: Dropbox API file preview  - check the preview content type in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-file-preview-check-the-preview-content-type/m-p/263657#M15418</link>
    <description>Apologies for not following up on this sooner. I just wanted to update this to let you know we now officially document which file types give which preview type:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getPreview-java.lang.String-" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getPreview-java.lang.String-&lt;/A&gt;</description>
    <pubDate>Mon, 05 Feb 2018 20:38:27 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-02-05T20:38:27Z</dc:date>
    <item>
      <title>Dropbox API file preview  - check the preview content type</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-file-preview-check-the-preview-content-type/m-p/177995#M7141</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using the Dropbox SDK for Java. I understand that the the get_preview will return either html or pdf based on the file type. Is there a rule that specifies what is the preview content type for each file type? And is that rule likely&amp;nbsp;to change? E.g xls preview is&amp;nbsp;html now, but next week may be pdf?&lt;/P&gt;
&lt;P&gt;And is there a way to check what the preview mime type is after we get it from Dropbox? Maybe it is in the response header, but how do I access this form the SDK?&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;only way to check the preview type&amp;nbsp;now is to consume the content stream convert to string and check if starts with HTML tag.&lt;/P&gt;
&lt;P&gt;Is there a better way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:31:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-file-preview-check-the-preview-content-type/m-p/177995#M7141</guid>
      <dc:creator>Penka V.</dc:creator>
      <dc:date>2019-05-29T09:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API file preview  - check the preview content type</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-file-preview-check-the-preview-content-type/m-p/177996#M7142</link>
      <description>&lt;P&gt;Thanks for the report Penka! You're right, it looks like we don't currently return a good indicator of the format used for the preview.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That endpoint does return either HTML or PDF, and that could change for any given sort of file over time, so the right way to handle this is to check&amp;nbsp;the returned format on the fly. I'm&amp;nbsp;sending this along to the team to see how we may be able to expose this properly so you don't have to do the string check you described.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 04:50:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-file-preview-check-the-preview-content-type/m-p/177996#M7142</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-21T04:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API file preview  - check the preview content type</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-file-preview-check-the-preview-content-type/m-p/263657#M15418</link>
      <description>Apologies for not following up on this sooner. I just wanted to update this to let you know we now officially document which file types give which preview type:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getPreview-java.lang.String-" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#getPreview-java.lang.String-&lt;/A&gt;</description>
      <pubDate>Mon, 05 Feb 2018 20:38:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-file-preview-check-the-preview-content-type/m-p/263657#M15418</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-02-05T20:38:27Z</dc:date>
    </item>
  </channel>
</rss>

