<?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: Get file content url from dropboxusercontent domain with javascript in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777802#M33968</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1847637"&gt;@perco&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;sharingGetSharedLinkFile&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1847637"&gt;@perco&lt;/a&gt;, I want to mention something I skipped before; just for completeness.&lt;/P&gt;&lt;P&gt;Once you have gotten the file content using the mentioned call, you don't need to use any link at all, so no any CORS issues would take place. You can just use received Blob object to initialize your player. &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: The discussed CORS issues may be considered as Dropbox links bugs though. Let's hope this will be fixed - it's meaningless response CORS headers to differ based on the request form, I think.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 16:06:01 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2024-06-17T16:06:01Z</dc:date>
    <item>
      <title>Get file content url from dropboxusercontent domain with javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777647#M33965</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm encountering a problem while trying to obtain the content URL of a file. Specifically, when I use a shared link to fetch a file, I receive a 302 response but i encounter CORS issues. This prevents me from following the redirect to obtain the file's content URL i guess. I don't face this issue when using curl or Python.&lt;BR /&gt;&lt;BR /&gt;Below, the sequence of API calls I'm making. I followed this &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-files-in-a-shared-folder/m-p/612169" target="_self"&gt;post&lt;/A&gt; :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sharingGetSharedLinkMetadata&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;filesListFolder&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;sharingGetSharedLinkFile&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;fetchSharedLinkFileUrl (In this step, i'm using fetch and replacing dl=0 with dl=1 in the file url but i'm facing Cors issues)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide any insights or recommendations on how to &lt;SPAN&gt;successfully retrieve the file content URL ? The URL format I'm dealing with is:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;https://*.dl.dropboxusercontent.com/cd/0/get/*/file?dl=1#&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My goal is to load an audio file into a JavaScript audio player. The HTML5 audio player can handle redirects without any issues, libraries like wavesurfer.js cannot, resulting in CORS problems. The only method I've found successful for loading audio files into wavesurfer is by using the direct&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;dropboxusercontent&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;URL. You can see this in action on their playground:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://wavesurfer.xyz/examples/?basic.js" target="_blank" rel="noopener"&gt;https://wavesurfer.xyz/examples/?basic.js&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2024 23:09:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777647#M33965</guid>
      <dc:creator>perco</dc:creator>
      <dc:date>2024-06-16T23:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Get file content url from dropboxusercontent domain with javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777654#M33966</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1847637"&gt;@perco&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;In cases like yours, an easy workaround would be to replace original share link domain, pointing to your music/song (&lt;A href="#" target="_self"&gt;www.dropbox.com&lt;/A&gt;) to dl.dropboxusercontent.com, without changing anything else. &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; That's it.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 00:03:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777654#M33966</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-06-17T00:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get file content url from dropboxusercontent domain with javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777664#M33967</link>
      <description>&lt;P&gt;Works like magic.&lt;BR /&gt;Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 02:37:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777664#M33967</guid>
      <dc:creator>perco</dc:creator>
      <dc:date>2024-06-17T02:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get file content url from dropboxusercontent domain with javascript</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777802#M33968</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1847637"&gt;@perco&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;sharingGetSharedLinkFile&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1847637"&gt;@perco&lt;/a&gt;, I want to mention something I skipped before; just for completeness.&lt;/P&gt;&lt;P&gt;Once you have gotten the file content using the mentioned call, you don't need to use any link at all, so no any CORS issues would take place. You can just use received Blob object to initialize your player. &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: The discussed CORS issues may be considered as Dropbox links bugs though. Let's hope this will be fixed - it's meaningless response CORS headers to differ based on the request form, I think.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 16:06:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Get-file-content-url-from-dropboxusercontent-domain-with/m-p/777802#M33968</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2024-06-17T16:06:01Z</dc:date>
    </item>
  </channel>
</rss>

