<?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: Get thumbnail with TypeScript in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398230#M21829</link>
    <description>&lt;P&gt;Using the "fileBlob" property is the right way to get the thumbnail data. Currently, you'll need to access it like this though:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/typescript/download/download.ts#L10" target="_blank" rel="noopener"&gt;https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/typescript/download/download.ts#L10&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Apologies this isn't better documented or included in the TypeScript definitions! I'll ask the team to fix that up.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 13:58:19 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-02-21T13:58:19Z</dc:date>
    <item>
      <title>Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398130#M21826</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm trying to get the thumbnail of an image with the js sdk implemented in a TypeScript application.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm using th method fileGetThumbnail() it return a Promise&amp;lt;DropboxTypes.files.FileMetaData&amp;gt; so once the promise is resolve I have an object of the type FileMetaData.&lt;/P&gt;
&lt;P&gt;This is fine but the FileMetaData object does not have a fileBlob object in it but when I'm doing a console.log(response), I do have a fileBlob in it...&lt;/P&gt;
&lt;P&gt;How am I supposed to get the thumbnail in my application without the blob ?&lt;/P&gt;
&lt;P&gt;Thank you for any help&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 10:43:45 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398130#M21826</guid>
      <dc:creator>DavidM27</dc:creator>
      <dc:date>2020-02-25T10:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398230#M21829</link>
      <description>&lt;P&gt;Using the "fileBlob" property is the right way to get the thumbnail data. Currently, you'll need to access it like this though:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/typescript/download/download.ts#L10" target="_blank" rel="noopener"&gt;https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/typescript/download/download.ts#L10&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Apologies this isn't better documented or included in the TypeScript definitions! I'll ask the team to fix that up.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 13:58:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398230#M21829</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-02-21T13:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398369#M21839</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;Is there any way for me to get to know when this is fixed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 07:03:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398369#M21839</guid>
      <dc:creator>DavidM27</dc:creator>
      <dc:date>2020-02-21T07:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398423#M21841</link>
      <description>&lt;P&gt;Yes, I'll follow up here once I have an update on that. I can't offer a timeline for a fix though, so please use the workaround for now.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:03:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/398423#M21841</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-02-21T14:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503282#M24897</link>
      <description>&lt;P&gt;hi - is the above issue stil lthe case? the github link detailing the workaround doesnt work and i cannot get this to work at all on typescript. thank you!&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 22:34:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503282#M24897</guid>
      <dc:creator>bffy_smmmers</dc:creator>
      <dc:date>2021-03-09T22:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503525#M24902</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419450"&gt;@bffy_smmmers&lt;/a&gt;&amp;nbsp;In browser contexts, you should access the file data using&amp;nbsp;fileBlob like in &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/javascript/download/index.html#L53" target="_self"&gt;this example&lt;/A&gt;. In node contexts, you should use&amp;nbsp;fileBinary instead, like in &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/main/examples/typescript/node/download.ts#L24" target="_self"&gt;this example&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 15:46:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503525#M24902</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-10T15:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503624#M24919</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp; - this is in a node context! i will give this a try.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 20:06:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503624#M24919</guid>
      <dc:creator>bffy_smmmers</dc:creator>
      <dc:date>2021-03-10T20:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503701#M24921</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp;how exactly do i get access to the shared link that is needed? i dont see it being returned on `filesListFolder`. I dont quite understand what I'm meant to pass in in order to return it and use it to get the thumbnail on the node backend. In the example the user is prompted for the shared link.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 01:02:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503701#M24921</guid>
      <dc:creator>bffy_smmmers</dc:creator>
      <dc:date>2021-03-11T01:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503911#M24926</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419450"&gt;@bffy_smmmers&lt;/a&gt;&amp;nbsp;Those examples happen to use&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingGetSharedLinkFile__anchor" target="_self"&gt;sharingGetSharedLinkFile&lt;/A&gt;, which is a way to retrieve file data from a shared link. That's just an example though, and may not be the right method for your own use case, such as if you're not working from a shared link to begin with. There are other methods for other use cases, but other content download methods enable access to the resulting file data in the same way (i.e.,&amp;nbsp; via&amp;nbsp;fileBlob or fileBinary).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for instance, if you just want to download a file from the connected account directly, not via a shared link, you would probably want to use the&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_self"&gt;filesDownload&lt;/A&gt; method instead. You would pass in the path for the file that you want to download. You can get the path from elsewhere on the API, such as&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor" target="_self"&gt;filesListFolder&lt;/A&gt;/&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolderContinue__anchor" target="_self"&gt;filesListFolderContinue&lt;/A&gt;, etc.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:20:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503911#M24926</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-11T16:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503959#M24935</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp; I'm essentially trying to get just a link to the thumbnail image from a file. Im calling on filesListFolder to get the contents of a folder, and i was hoping to pull off some piece of data from that to feed to sharingGetSharedLinkFile to get the thumbnail, but i dont see any clear/ simple way to do that (but i am a beginner and could be missing something)&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 18:00:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503959#M24935</guid>
      <dc:creator>bffy_smmmers</dc:creator>
      <dc:date>2021-03-11T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503971#M24937</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419450"&gt;@bffy_smmmers&lt;/a&gt;&amp;nbsp;The&amp;nbsp;filesListFolder method doesn't return any file data or shared links. It only returns file metadata. The&amp;nbsp;Dropbox API also doesn't return thumbnail links in general. If you want the original file data, you should call&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_self"&gt;filesDownload&lt;/A&gt;. If you want a thumbnail of an image file, you should call&amp;nbsp;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesGetThumbnail__anchor" target="_self"&gt;filesGetThumbnail&lt;/A&gt;. Those return the requested data directly&amp;nbsp;&lt;SPAN&gt;(via&amp;nbsp;fileBlob or fileBinary), but not as a link.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 18:26:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/503971#M24937</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-11T18:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/504007#M24940</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp; Thanks, and i am passing in the path to the file, correct? would that not mean the `path_lower` attribute? This does not yield any result for me. Here is my implementation. When i wrap it in a try/catch, i get the error (fetch is not a function) I apologize for not unerstanding, again, I'm new to this. Im trying to put my code in a block, but it gives me an error when i go to post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;async getThumbnail(path: any) {&lt;/P&gt;&lt;P&gt;console.log(`getThumbnail is running with ${path}`)&lt;BR /&gt;const data = await this.client.filesGetThumbnail(path)&lt;/P&gt;&lt;P&gt;console.log(&amp;lt;any&amp;gt;data)&lt;BR /&gt;//im returning an empty string so it doesnt break anything&amp;nbsp;&lt;BR /&gt;return '';&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Mar 2021 20:03:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/504007#M24940</guid>
      <dc:creator>bffy_smmmers</dc:creator>
      <dc:date>2021-03-11T20:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get thumbnail with TypeScript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/504295#M24947</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1419450"&gt;@bffy_smmmers&lt;/a&gt;&amp;nbsp;You should use .then and .catch to handle the result/error, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;dbx.filesGetThumbnail({path: path})
  .then(function(response) {
    console.log("got filesGetThumbnail response:");
    console.log(response);
    console.log("got thumbnail data:");
    console.log(response.fileBlob);
  })
  .catch(function(error) {
    console.log("got filesGetThumbnail error:");
    console.log(error);
  });&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 16:26:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-thumbnail-with-TypeScript/m-p/504295#M24947</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-03-12T16:26:08Z</dc:date>
    </item>
  </channel>
</rss>

