<?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 API JS in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318400#M18847</link>
    <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/229" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/229&lt;/A&gt; / &lt;A href="https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js" target="_blank"&gt;https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js&lt;/A&gt; ]&lt;/P&gt;</description>
    <pubDate>Mon, 17 Dec 2018 18:46:00 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2018-12-17T18:46:00Z</dc:date>
    <item>
      <title>download file API JS</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318147#M18845</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am developing a thiny web client for Dropbox using the Javascript API. What I want to have is the basic functionality (upload, download, and delete files) from an account.&lt;BR /&gt;I am having trouble with the downloadFile function which I don't really understand and doesn't work as I expected. I have to say that I am learning JS, and sorry, but not found so much documentation about that. I've read the API documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;PRE&gt;		function downloadFile(){
			var itemValue = obtenerItemValue();
			
			if (itemValue == null)
				alert('Hay que seleccionar antes un archivo');
			else{
				alert('Archivo a descargar: ' + itemValue);

				dbx.filesDownload({path: '/' + itemValue})
				
					.then(function(response) {
					})
					.catch(function(err) {
					console.log(err);
					callback('Error downloading file using the Dropbox API');
					});
				
				recargarItems();
			}
		}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;And I don't know what to do, the action send a POST message and gets back a response in application/byte type, as shown here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sJ0QI" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/8017iAE55AB3E20E9098F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sJ0QI" alt="sJ0QI" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone could help me please?&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318147#M18845</guid>
      <dc:creator>erik-121</dc:creator>
      <dc:date>2019-05-29T09:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: download file API JS</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318400#M18847</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/229" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/229&lt;/A&gt; / &lt;A href="https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js" target="_blank"&gt;https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js&lt;/A&gt; ]&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 18:46:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318400#M18847</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-17T18:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: download file API JS</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318448#M18856</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/10"&gt;@Greg-DB&lt;/a&gt;&amp;nbsp; escribió:&lt;BR /&gt;&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/issues/229" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/issues/229&lt;/A&gt; / &lt;A href="https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js" target="_blank"&gt;https://stackoverflow.com/questions/53801974/download-file-with-dropbox-api-js&lt;/A&gt; ]&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I don't find helpful your answer... &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@B0F70D28791EB05FA3EA0C3BDDF08EE3/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Dec 2018 22:20:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318448#M18856</guid>
      <dc:creator>erik-121</dc:creator>
      <dc:date>2018-12-17T22:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: download file API JS</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318481#M18857</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/885007"&gt;@erik-121&lt;/a&gt;&amp;nbsp;My comment here was only to&amp;nbsp;link to your other posts, where someone has already answered your question, in case anyone else came across this thread with the same question.&lt;/P&gt;
&lt;P&gt;Please refer to your other posts for more information, including a link to a sample that shows how to use a download-style method like this.&lt;/P&gt;
&lt;P&gt;If something still isn't working as expected, please reply with more information showing exactly what the issue is.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 00:48:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/download-file-API-JS/m-p/318481#M18857</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-18T00:48:23Z</dc:date>
    </item>
  </channel>
</rss>

