<?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: Download file through JS SDK in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-file-through-JS-SDK/m-p/252618#M14569</link>
    <description>&lt;P&gt;I can't think of a way to do this using &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_self"&gt;filesDownload&lt;/A&gt;. The &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_self"&gt;filesDownload&lt;/A&gt; response block won't fire until the data is ready, so you can't build the URL from the blob until then, which you need to trigger the download.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesGetTemporaryLink__anchor" target="_self"&gt;filesGetTemporaryLink&lt;/A&gt;&amp;nbsp;instead though. That will directly return a URL you can pass along to the browser to download from.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Nov 2017 20:04:07 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-11-14T20:04:07Z</dc:date>
    <item>
      <title>Download file through JS SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-file-through-JS-SDK/m-p/252605#M14568</link>
      <description>&lt;P&gt;I am currently working with your javascript sdk to retrieve a list of files from my dropbox using&amp;nbsp;filesListFolder and I display the files as links on my page. I also use the&amp;nbsp;filesDownload method to give my users the ability to download the files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a user clicks on a link, the browser's default download window (the one that asks you where you want to save the file) only appears when the file has&amp;nbsp;finished downloading in the background and I&amp;nbsp;then take the blob returned and manually start the download to the user's filesystem afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that I would like the default browser's download window to open when the user clicks on the link and not after the download has been completed.&amp;nbsp;Do you think there is a way I could do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:17:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-file-through-JS-SDK/m-p/252605#M14568</guid>
      <dc:creator>MaxEvan</dc:creator>
      <dc:date>2019-05-29T09:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Download file through JS SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-file-through-JS-SDK/m-p/252618#M14569</link>
      <description>&lt;P&gt;I can't think of a way to do this using &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_self"&gt;filesDownload&lt;/A&gt;. The &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_self"&gt;filesDownload&lt;/A&gt; response block won't fire until the data is ready, so you can't build the URL from the blob until then, which you need to trigger the download.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesGetTemporaryLink__anchor" target="_self"&gt;filesGetTemporaryLink&lt;/A&gt;&amp;nbsp;instead though. That will directly return a URL you can pass along to the browser to download from.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2017 20:04:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-file-through-JS-SDK/m-p/252618#M14569</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-11-14T20:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Download file through JS SDK</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-file-through-JS-SDK/m-p/252757#M14589</link>
      <description>&lt;P&gt;Thank you very much for&amp;nbsp;the answer, I will try that!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2017 14:39:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-file-through-JS-SDK/m-p/252757#M14589</guid>
      <dc:creator>MaxEvan</dc:creator>
      <dc:date>2017-11-15T14:39:42Z</dc:date>
    </item>
  </channel>
</rss>

