<?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 Download shared file from shared link in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/431018#M22835</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm building a web app using Dropbox API, that app may be use to share some files to people that does not have a dropbox, so I created a share link via the API and then I want those people to be able to download it directly from the app.&lt;BR /&gt;I need the file to be download in the app because the file has to be manipulated before being downlodable by the uer.&lt;BR /&gt;What I tried was to use the share link and make an XHR request with the share link replacing the query parameter ?dl=0 by ?dl=1.&lt;BR /&gt;Buty obvioulsy this can not work because dropbox does not let me download it because of the CORS policy.&lt;BR /&gt;Can you tell if it is possible to download a file without being connected to dropbox and directly from my web app ?&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 12:33:31 GMT</pubDate>
    <dc:creator>DavidM27</dc:creator>
    <dc:date>2020-06-19T12:33:31Z</dc:date>
    <item>
      <title>Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/431018#M22835</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm building a web app using Dropbox API, that app may be use to share some files to people that does not have a dropbox, so I created a share link via the API and then I want those people to be able to download it directly from the app.&lt;BR /&gt;I need the file to be download in the app because the file has to be manipulated before being downlodable by the uer.&lt;BR /&gt;What I tried was to use the share link and make an XHR request with the share link replacing the query parameter ?dl=0 by ?dl=1.&lt;BR /&gt;Buty obvioulsy this can not work because dropbox does not let me download it because of the CORS policy.&lt;BR /&gt;Can you tell if it is possible to download a file without being connected to dropbox and directly from my web app ?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 12:33:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/431018#M22835</guid>
      <dc:creator>DavidM27</dc:creator>
      <dc:date>2020-06-19T12:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/431091#M22836</link>
      <description>&lt;P&gt;Unfortunately I don't have a good solution to offer here. Using a shared link with &lt;A href="https://help.dropbox.com/files-folders/share/force-download" target="_self"&gt;the parameter modification&lt;/A&gt; is the best way to share read-only access to a file when the recipient doesn't have a&amp;nbsp;Dropbox account. As you found though, these can't be requested programmatically in browser&amp;nbsp;JavaScript due to the CORS policy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternatively, you could have your server do the&amp;nbsp;download first, and then pass the contents down to end-user's browser instead. This would come at the expense of extra server bandwidth consumption though.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:45:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/431091#M22836</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-06-19T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/431904#M22848</link>
      <description>&lt;P&gt;Thank you Greg for your reply.&lt;BR /&gt;As a workaround I tried to use the dl.dropboxusercontent.com redirect link but it does work only with file not with folder... So we'll have to find another solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 12:53:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/431904#M22848</guid>
      <dc:creator>DavidM27</dc:creator>
      <dc:date>2020-06-23T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/432262#M22864</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1265502"&gt;@DavidM27&lt;/a&gt;&amp;nbsp;, you could use the cloud API functionality of the various cloud based automation programs out there like Power Automate (Flow), automate.io, zapier, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There might be a limit for the file size (&lt;EM&gt;Google used to max out at 50MB&lt;/EM&gt;) either on Dropbox or the other end of the equation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Equally, instead of open-ended download, you could have your users use a local folder with something like Dropbox, and create an app to copy it to their specific folder, which will then sync to their local folder.&lt;/P&gt;&lt;P&gt;( &lt;EM&gt;this seems like a valid use of all the bricks in this lego set &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; ...&lt;/EM&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jun 2020 16:06:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/432262#M22864</guid>
      <dc:creator>eliotcole</dc:creator>
      <dc:date>2020-06-24T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/760976#M33229</link>
      <description>&lt;P&gt;How can I make my server download first?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;const file = createWriteStream(filePath);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;https.get(fileURL, response =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;response.pipe(file);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;file.on('finish', () =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;file.close();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;resolve();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}).on('error', err =&amp;gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;fs.unlink(filePath, () =&amp;gt; reject(err)); // Delete the file asynchronously on error&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;});&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The code works for other content links. but doesn't works for the dropbox link.&lt;BR /&gt;I tired dl=1, raw=1. But still it doesn't work.&lt;BR /&gt;&lt;BR /&gt;All i got everytime are invalid files.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dgtalbox_0-1711948124738.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/45164i9F26274C3001E84D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dgtalbox_0-1711948124738.png" alt="dgtalbox_0-1711948124738.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 05:08:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/760976#M33229</guid>
      <dc:creator>dgtal box</dc:creator>
      <dc:date>2024-04-01T05:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/760994#M33230</link>
      <description>&lt;P&gt;Hi &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;It's never good idea using temporary derivative of shared link. The issue here is that... it's temporary - that's why expires. Use either the shared link itself or supported modification only instead. &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;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 07:52:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/760994#M33230</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-04-01T07:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/761012#M33231</link>
      <description>&lt;P&gt;I never used temporary derivative of shared link. I use just the shared link itself.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 09:13:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/761012#M33231</guid>
      <dc:creator>dgtal box</dc:creator>
      <dc:date>2024-04-01T09:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Download shared file from shared link</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/761045#M33235</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;All i got everytime are invalid files.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dgtalbox_0-1711948124738.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/45164i9F26274C3001E84D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dgtalbox_0-1711948124738.png" alt="dgtalbox_0-1711948124738.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hm...&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@9AD39CA637682E9616FBE31CDAF1B6C4/emoticons/1f914.png" alt=":thinking_face:" title=":thinking_face:" /&gt; What is that what you got? 🧐 Is it the shared link itself? Or... not exactly. &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; Where you copy it from in gedit?&lt;/P&gt;&lt;P&gt;If you want, you can clarify what's going on by posting some code snippet that'll let the issue reproduction. So, likely will be more clear where is your error. The code should use either calls to Dropbox SDK or direct HTTP posts using fetch or XMLHttpRequest (or the HTTP requests themself), so to be reproducible. Mask any private info like different tokens.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2024 12:17:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Download-shared-file-from-shared-link/m-p/761045#M33235</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-04-01T12:17:17Z</dc:date>
    </item>
  </channel>
</rss>

