<?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: How to download file from dropbox with Vue/Javascript in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546886#M26062</link>
    <description>&lt;P&gt;To use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#toc0__anchor" target="_blank"&gt;the 'Dropbox' constructor&lt;/A&gt;, that should be 'new Dropbox' instead of 'new Dropbox.Dropbox'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, I redacted it from your post, but note that access tokens enable access to Dropbox accounts, so for the sake of security, you should never share access tokens like this. Since this access token has been shared here, you should disable this access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/account/connected_apps" target="_blank"&gt;https://www.dropbox.com/account/connected_apps&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Or, you can disable just this access token using the API:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's authTokenRevoke in the JavaScript SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#authTokenRevoke__anchor" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#authTokenRevoke__anchor&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Note that doing so will cause any further API calls made using this access token to fail. This cannot be undone, and you would need to get a new access token to replace this one.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 19:31:18 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2021-09-24T19:31:18Z</dc:date>
    <item>
      <title>How to download file from dropbox with Vue/Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546860#M26060</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a vue application where I want to download files in a specific folder. But when I call the method to do it I am getting the following error:&lt;/P&gt;&lt;P&gt;TypeError: Dropbox.Dropbox is not a constructor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the latest version of the following package:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;"dropbox"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"^10.10.0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me please?&lt;/P&gt;&lt;P&gt;This is my code hope someone can help me Identify the mistake:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;getImages&lt;/SPAN&gt;() {&lt;BR /&gt;  require(&lt;SPAN&gt;"isomorphic-fetch"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  const &lt;/SPAN&gt;Dropbox = require(&lt;SPAN&gt;"dropbox"&lt;/SPAN&gt;).Dropbox&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;  const &lt;/SPAN&gt;dbx = &lt;SPAN&gt;new &lt;/SPAN&gt;Dropbox.Dropbox({&lt;BR /&gt;    &lt;SPAN&gt;accessToken&lt;/SPAN&gt;: &lt;SPAN&gt;'&amp;lt;REDACTED&amp;gt;'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;fetch&lt;BR /&gt;&lt;/SPAN&gt;  })&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;  dbx.&lt;SPAN&gt;filesDownload&lt;/SPAN&gt;({&lt;BR /&gt;  &lt;SPAN&gt;path&lt;/SPAN&gt;: &lt;SPAN&gt;"/test"&lt;BR /&gt;&lt;/SPAN&gt;  }).&lt;SPAN&gt;then&lt;/SPAN&gt;(&lt;SPAN&gt;function&lt;/SPAN&gt;(response){&lt;BR /&gt;    &lt;SPAN&gt;console&lt;/SPAN&gt;.&lt;SPAN&gt;log&lt;/SPAN&gt;(response)&lt;BR /&gt;  })&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the version to&amp;nbsp;&lt;SPAN&gt;4.0.30 and use new Dropbox instead of Dropbox.Dropbox I am getting the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"missing_scope", required_scope: "files.content.read"} But I have given this permission in my app. If I use the Dropbox.Dropbox in this version I am still getting the is not a constructor error even though it states that it works in another post here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:15:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546860#M26060</guid>
      <dc:creator>haso94</dc:creator>
      <dc:date>2021-09-24T19:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to download file from dropbox with Vue/Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546886#M26062</link>
      <description>&lt;P&gt;To use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#toc0__anchor" target="_blank"&gt;the 'Dropbox' constructor&lt;/A&gt;, that should be 'new Dropbox' instead of 'new Dropbox.Dropbox'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, I redacted it from your post, but note that access tokens enable access to Dropbox accounts, so for the sake of security, you should never share access tokens like this. Since this access token has been shared here, you should disable this access token. You can do so by revoking access to the app entirely, if the access token is for your account, here:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/account/connected_apps" target="_blank"&gt;https://www.dropbox.com/account/connected_apps&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Or, you can disable just this access token using the API:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#auth-token-revoke&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's authTokenRevoke in the JavaScript SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#authTokenRevoke__anchor" target="_blank"&gt;https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#authTokenRevoke__anchor&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Note that doing so will cause any further API calls made using this access token to fail. This cannot be undone, and you would need to get a new access token to replace this one.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:31:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546886#M26062</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-24T19:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to download file from dropbox with Vue/Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546887#M26063</link>
      <description>&lt;P&gt;A 'missing_scope' error indicates that while the app is permitted to use that scope, the particular access token you're using to make the API call does not have that scope granted. Also, be aware that just adding a scope to your app via the App Console does not retroactively grant that scope to existing access tokens. That being the case, to make any API calls that require that scope, you'll need to get a new access token with that scope.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:31:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546887#M26063</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-24T19:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to download file from dropbox with Vue/Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546891#M26064</link>
      <description>&lt;P&gt;Thanks for the answer for both questions. And thanks for changing my auth key. Now I am getting a 409 error. It says my path is malformed. What I want to do is to download all images inside the following path:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;: &lt;SPAN&gt;"/test/"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;test is a folder inside my dropbox I want to download all images inside it. The code is the same like in the original post with the exception of the path.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:43:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546891#M26064</guid>
      <dc:creator>haso94</dc:creator>
      <dc:date>2021-09-24T19:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to download file from dropbox with Vue/Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546892#M26065</link>
      <description>&lt;P&gt;The path value should not end with a "/". For example, if the file is named "test" and is in the root, the path should be "/test". Or as another example, if the name of the file is "test.jpg" and it is inside a folder named "folder", then the path would be "/folder/test.jpg".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I recommend reading &lt;A href="https://developers.dropbox.com/dbx-file-access-guide" target="_self"&gt;the File Access Guide&lt;/A&gt; for more information.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 19:47:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546892#M26065</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-24T19:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to download file from dropbox with Vue/Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546895#M26066</link>
      <description>&lt;P&gt;Ok I understand that but is there no way to download all images inside one folder in dropbox?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 20:01:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546895#M26066</guid>
      <dc:creator>haso94</dc:creator>
      <dc:date>2021-09-24T20:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to download file from dropbox with Vue/Javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546898#M26067</link>
      <description>&lt;P&gt;The &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" target="_self"&gt;filesDownload&lt;/A&gt; method downloads a single file. If you want to download multiple files, such as all of the files in a folder, you can iterate through them and call it for each one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to download an entire folder at once, you can use &lt;A href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownloadZip__anchor" target="_self"&gt;filesDownloadZip&lt;/A&gt; instead. Note that this will give you a zip of the folder which you will need to unzip locally.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 20:11:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-dropbox-with-Vue-Javascript/m-p/546898#M26067</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-09-24T20:11:38Z</dc:date>
    </item>
  </channel>
</rss>

