<?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: SwiftyDropbox getting image/video thumbnail in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-getting-image-video-thumbnail/m-p/224423#M12130</link>
    <description>&lt;P&gt;The files.getThumbnail call is a "download-style request", like files.download. The&amp;nbsp;response.0 will be the original file metadata, so&amp;nbsp;response.0.pathLower is the original file path. To get the data for the thumbnail, you should use&amp;nbsp;response.1, like in the files.download example here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox#download-style-request" target="_blank"&gt;https://github.com/dropbox/SwiftyDropbox#download-style-request&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2017 21:37:18 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-06-05T21:37:18Z</dc:date>
    <item>
      <title>SwiftyDropbox getting image/video thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-getting-image-video-thumbnail/m-p/224278#M12105</link>
      <description>&lt;P&gt;I'm trying to get a&amp;nbsp;thumbnail but seem to receive the path to the original&amp;nbsp;image/video. What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;client.files.getThumbnail(path: file.pathLower).response{ response, error in
  if let response = response, let thumbnailPath = response.0.pathLower {
    print("Thumbnail: \(thumbnailPath), original: \(self.file.pathLower), size: \(response.0.size)")
  }
}&lt;/PRE&gt;&lt;P&gt;Prints (for a photo):&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Thumbnail: /foto.jpg, original: /foto.jpg, size: 131816&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Prints (for a video):&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Thumbnail: /test/20170408_134934.mp4, original: /test/20170408_134934.mp4, size: 65015200&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:21:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-getting-image-video-thumbnail/m-p/224278#M12105</guid>
      <dc:creator>alyoka</dc:creator>
      <dc:date>2019-05-29T09:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropbox getting image/video thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-getting-image-video-thumbnail/m-p/224423#M12130</link>
      <description>&lt;P&gt;The files.getThumbnail call is a "download-style request", like files.download. The&amp;nbsp;response.0 will be the original file metadata, so&amp;nbsp;response.0.pathLower is the original file path. To get the data for the thumbnail, you should use&amp;nbsp;response.1, like in the files.download example here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox#download-style-request" target="_blank"&gt;https://github.com/dropbox/SwiftyDropbox#download-style-request&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2017 21:37:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-getting-image-video-thumbnail/m-p/224423#M12130</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-06-05T21:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: SwiftyDropbox getting image/video thumbnail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-getting-image-video-thumbnail/m-p/224452#M12133</link>
      <description>Thank you!</description>
      <pubDate>Tue, 06 Jun 2017 07:53:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/SwiftyDropbox-getting-image-video-thumbnail/m-p/224452#M12133</guid>
      <dc:creator>alyoka</dc:creator>
      <dc:date>2017-06-06T07:53:41Z</dc:date>
    </item>
  </channel>
</rss>

