<?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 Dropbox download to an absolute URL in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-download-to-an-absolute-URL/m-p/450005#M23380</link>
    <description>&lt;P&gt;Is there a way to get an absolute URL of an image&amp;nbsp;&lt;EM&gt;after&lt;/EM&gt; it's been downloaded using the &lt;EM&gt;filesDownload&amp;nbsp;&lt;/EM&gt;function in the JavaScript, I'm also using Node.js and Discord.js, I'm currently trying to download an image from my Dropbox directory and then send it to a Discord channel which only allows for absolute URLs to send images as attachments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realise I can use the&amp;nbsp;&lt;EM&gt;response.fileBinary&amp;nbsp;&lt;/EM&gt;to get the data of the image, is there a way to then save this to the server it's running on using the command "&lt;EM&gt;node ."&lt;/EM&gt;&amp;nbsp; and then locate that image on the server which I can then send.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Sep 2020 18:24:07 GMT</pubDate>
    <dc:creator>AdamWolfy</dc:creator>
    <dc:date>2020-09-01T18:24:07Z</dc:date>
    <item>
      <title>Dropbox download to an absolute URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-download-to-an-absolute-URL/m-p/450005#M23380</link>
      <description>&lt;P&gt;Is there a way to get an absolute URL of an image&amp;nbsp;&lt;EM&gt;after&lt;/EM&gt; it's been downloaded using the &lt;EM&gt;filesDownload&amp;nbsp;&lt;/EM&gt;function in the JavaScript, I'm also using Node.js and Discord.js, I'm currently trying to download an image from my Dropbox directory and then send it to a Discord channel which only allows for absolute URLs to send images as attachments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I realise I can use the&amp;nbsp;&lt;EM&gt;response.fileBinary&amp;nbsp;&lt;/EM&gt;to get the data of the image, is there a way to then save this to the server it's running on using the command "&lt;EM&gt;node ."&lt;/EM&gt;&amp;nbsp; and then locate that image on the server which I can then send.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 18:24:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-download-to-an-absolute-URL/m-p/450005#M23380</guid>
      <dc:creator>AdamWolfy</dc:creator>
      <dc:date>2020-09-01T18:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox download to an absolute URL</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-download-to-an-absolute-URL/m-p/450035#M23382</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 in the&amp;nbsp;Dropbox API v2 JavaScript SDK is just a way to retrieve the file data from the&amp;nbsp;Dropbox servers, and doesn't itself interact with your local filesystem. You can access the file data via the&amp;nbsp;fileBinary property like you mentioned, and from there you can do whatever you need with the data, such as saving it to the local filesystem, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For instance, &lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/node/download.js#L20" target="_self"&gt;here's an example&lt;/A&gt; that shows how you could save the&amp;nbsp;downloaded file data from a download-style request (filesDownload works the same way) to the local file system using fs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 19:25:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-download-to-an-absolute-URL/m-p/450035#M23382</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-09-01T19:25:11Z</dc:date>
    </item>
  </channel>
</rss>

