title: Issues downloading files using Dropbox JavaScript SDK
body: <p>I am attempting to download a file, to the Webapp itself on the client side, using the Dropbox Javascript SDK.  </p>
  
  <p>I want to make it clear that I only wish to download a file to a folder in the web app; I understand that due to security concerns this may not actually be possible.</p>
  
  <p>I am following the documentation provided in:</p>
  
  <p><a href="http://dropbox.github.io/dropbox-sdk-js/index.html" rel="nofollow">http://dropbox.github.io/dropbox-sdk-js/index.html</a></p>
  
  <p><a href="http://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor" rel="nofollow">http://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesDownload__anchor</a></p>
  
  <p>This is my controller code:</p>
  
  <pre><code>$scope.testDownload = function() {
    console.log('Testing Download');
    dbx.filesDownload( {path: '/Collorado Springs.jpg'} ) // Just a test file
      .then(function(response) {
        console.log(response);
      })
      .catch(function(error) {
        console.log(err);
    });
  };
  </code></pre>
  
  <p>I can definitely see that a download does take place as it is shown in the Chrome Network tool as shown below:</p>
  
  <p>(I do not have enough reputation to insert multiple links so please interpet this shared "link" I generated)</p>
  
  <p>https:// www.dropbox.com/s/s0gvpi4qq2nw23s/dbxFilesDownload.JPG?dl=0</p>
  
  <p>I believe this is either me lacking knowledge of working with file downloads, or mis-using JavaScript.</p>
  
  <p>Thank you in advance for any help you can provide.</p>