<?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 How to download file from Dropbox using javascript dropbox api in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-Dropbox-using-javascript-dropbox-api/m-p/13263#M500</link>
    <description>&lt;P&gt;I tried to download a file from Dropbox using Core Api with javascript(without&amp;nbsp;using chooser api). Here is the method I have written.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  function download(path, token){  
      var url = "https://api-content.dropbox.com/1/files/auto/" + path;
      var result;
      var xhr = new XMLHttpRequest(); 
      xhr.onreadystatechange = function() {
        if (xhr.readyState === 4 &amp;amp;&amp;amp; xhr.status === 200) {
           result = xhr.responseText;
        }
      }
  xhr.open("GET", url, true);
  xhr.setRequestHeader("Authorization", "Bearer " + token);
  xhr.send();  
}

&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the response I got.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 The plain HTTP request was sent to HTTPS port&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;
&amp;lt;body bgcolor="white"&amp;gt;
&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;center&amp;gt;The plain HTTP request was sent to HTTPS port&amp;lt;/center&amp;gt;
&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx&amp;lt;/center&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;


&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;Any idea about what's wrong with this code...???&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:40:54 GMT</pubDate>
    <dc:creator>Issac J.</dc:creator>
    <dc:date>2019-05-29T09:40:54Z</dc:date>
    <item>
      <title>How to download file from Dropbox using javascript dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-Dropbox-using-javascript-dropbox-api/m-p/13263#M500</link>
      <description>&lt;P&gt;I tried to download a file from Dropbox using Core Api with javascript(without&amp;nbsp;using chooser api). Here is the method I have written.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  function download(path, token){  
      var url = "https://api-content.dropbox.com/1/files/auto/" + path;
      var result;
      var xhr = new XMLHttpRequest(); 
      xhr.onreadystatechange = function() {
        if (xhr.readyState === 4 &amp;amp;&amp;amp; xhr.status === 200) {
           result = xhr.responseText;
        }
      }
  xhr.open("GET", url, true);
  xhr.setRequestHeader("Authorization", "Bearer " + token);
  xhr.send();  
}

&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here is the response I got.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;400 The plain HTTP request was sent to HTTPS port&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;
&amp;lt;body bgcolor="white"&amp;gt;
&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;400 Bad Request&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;center&amp;gt;The plain HTTP request was sent to HTTPS port&amp;lt;/center&amp;gt;
&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx&amp;lt;/center&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;


&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;Any idea about what's wrong with this code...???&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:40:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-Dropbox-using-javascript-dropbox-api/m-p/13263#M500</guid>
      <dc:creator>Issac J.</dc:creator>
      <dc:date>2019-05-29T09:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to download file from Dropbox using javascript dropbox api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-Dropbox-using-javascript-dropbox-api/m-p/13264#M501</link>
      <description>&lt;P&gt;Cross-linking with&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/31645523/download-file-from-dropbox-using-javascript-dropbox-api" rel="nofollow noreferrer"&gt;http://stackoverflow.com/questions/31645523/download-file-from-dropbox-using-javascript-dropbox-api&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2015 12:51:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-download-file-from-Dropbox-using-javascript-dropbox-api/m-p/13264#M501</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-07-30T12:51:33Z</dc:date>
    </item>
  </channel>
</rss>

