<?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 files from shared link using javascript in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761089#M33239</link>
    <description>&lt;P&gt;I would be a happy camper when I get a solution to get even a zip file from shared link for folder.&lt;BR /&gt;&lt;BR /&gt;The rest things don't matter.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2024 16:08:43 GMT</pubDate>
    <dc:creator>dgtal box</dc:creator>
    <dc:date>2024-04-01T16:08:43Z</dc:date>
    <item>
      <title>Download files from shared link using javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761021#M33233</link>
      <description>&lt;P&gt;...&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;await new Promise&amp;lt;void&amp;gt;((resolve, reject) =&amp;gt; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;const file = createWriteStream(filePath);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;https.get(createAudioLibraryCard.basicInfo.sharedLink, response =&amp;gt; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; response.pipe(file);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; file.on('finish', () =&amp;gt; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; &amp;nbsp;file.close();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; &amp;nbsp;resolve();&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; &amp;nbsp;});&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; }).on('error', err =&amp;gt; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp; &amp;nbsp;fs.unlink(filePath, () =&amp;gt; reject(err)); // Delete the file asynchronously on error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;});&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;});&lt;/FONT&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;SPAN&gt;The above code downloads for other content links.&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;a sample link as bellow:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://st2.depositphotos.com/1743476/11581/i/950/depositphotos_115812486-stock-photo-pride-man-smiling.jpg" target="_blank" rel="noopener"&gt;https://st2.depositphotos.com/1743476/11581/i/950/depositphotos_115812486-stock-photo-pride-man-smiling.jpg&lt;/A&gt;&lt;BR /&gt;But, it doesn't download for a dropbox shared link.&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=1" target="_blank" rel="noopener"&gt;https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=1&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=0&amp;amp;raw=1&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=0" target="_blank" rel="noopener"&gt;https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=1&amp;amp;raw=1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I'd like to ask if I can still download files from a shared link of dropbox to my local backend instance using javascript.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 19:07:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761021#M33233</guid>
      <dc:creator>dgtal box</dc:creator>
      <dc:date>2024-04-01T19:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from shared link using javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761057#M33236</link>
      <description>&lt;P&gt;Hi again &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1818869"&gt;@dgtal box&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, as mentioned in another thread here on the forum where you participate too, there are some issues with CORS. You still can request the pointed file with some tricks, like following:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20240401_153848.png" style="width: 800px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/45173i07B50FF55F9DA3CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_20240401_153848.png" alt="Screenshot_20240401_153848.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see it's possible. Just change the domain as shown and that's it. The missing header, as in your case, here exists! By the way, you can just wipe out the ending "&amp;amp;dl=0", but it's not something mandatory.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 12:51:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761057#M33236</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-04-01T12:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from shared link using javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761080#M33237</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp; Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=0" target="_blank" rel="noopener noreferrer"&gt;https://www.dropbox.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;dl=0&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Instead of the above url, I tried with the bellow url.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dl.dropboxusercontent.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;" target="_blank"&gt;https://dl.dropboxusercontent.com/scl/fi/1exa5owhx97kozgshjx3d/1.png?rlkey=b5rtxqmcprjgfrqnkspgguwuy&amp;amp;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Eventually, it worked.&lt;BR /&gt;&lt;BR /&gt;Any solution for a folder?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 14:48:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761080#M33237</guid>
      <dc:creator>dgtal box</dc:creator>
      <dc:date>2024-04-01T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from shared link using javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761088#M33238</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1818869"&gt;@dgtal box&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;BR /&gt;Any solution for a folder?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, that trick doesn't work for folder links, unfortunately. Even if that works, you would need to unzip the content (a zip file would come up, not something else). You could walk through the particular folder tree and download all files while recreating the tree locally instead (like unzipping would do). &lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Take a look &lt;A href="https://www.dropboxforum.com/t5/View-download-and-export/How-to-Workaround-quot-Zip-File-is-Too-Large-quot-Error/m-p/694167/highlight/true#M46791" target="_blank" rel="noopener"&gt;here&lt;/A&gt; (shell example) for a possible solution (in your case would be much smaller - javascript has more tools). Just get the idea out of there. You may have some challenges with placing on/accessing local space out of the browser though.&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add: For one more solution targeting listing the pointed folder take a look &lt;A href="https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Downloading-large-amount-of-files-to-my-web-application/m-p/725217/highlight/true#M3724" target="_blank" rel="noopener"&gt;here&lt;/A&gt; (it's in Python - just get idea out from there).&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@FBF7D2AB59A0D6E861EBF6A36F93B7E2/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt; In such a case you don't need any application registration.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 15:46:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761088#M33238</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-04-01T15:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Download files from shared link using javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761089#M33239</link>
      <description>&lt;P&gt;I would be a happy camper when I get a solution to get even a zip file from shared link for folder.&lt;BR /&gt;&lt;BR /&gt;The rest things don't matter.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 16:08:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-files-from-shared-link-using-javascript/m-p/761089#M33239</guid>
      <dc:creator>dgtal box</dc:creator>
      <dc:date>2024-04-01T16:08:43Z</dc:date>
    </item>
  </channel>
</rss>

