<?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: Preview Mp3/Wav Files with Api in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Preview-Mp3-Wav-Files-with-Api/m-p/459060#M23612</link>
    <description>&lt;P&gt;Can you elaborate on what you mean when you say you want to "preview" these kinds of audio files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, do you mean you just want to download beginning of the file but not the entire file? In that case, note that &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;the&amp;nbsp;/2/files/download endpoint&lt;/A&gt; does support "&lt;A href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2" target="_blank"&gt;range retrieval requests&lt;/A&gt;", so you can download a partial portion of the file, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# this downloads just the first 10 KB of the file
curl -X POST https://content.dropboxapi.com/2/files/download \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE" \
    --header "Range: bytes=0-10000" \
    --header "Dropbox-API-Arg: {\"path\": \"/Testing/Audio/Laughter.mp3\"}" &amp;gt; out.mp3&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 16:54:40 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-10-05T16:54:40Z</dc:date>
    <item>
      <title>Preview Mp3/Wav Files with Api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Preview-Mp3-Wav-Files-with-Api/m-p/458950#M23607</link>
      <description>&lt;P&gt;I want to preview mp3/wav files with using Api. I've read some topics but they were about doc,pdf,xls files.&lt;BR /&gt;Can i do it?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 11:46:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Preview-Mp3-Wav-Files-with-Api/m-p/458950#M23607</guid>
      <dc:creator>fikirsahipleri</dc:creator>
      <dc:date>2020-10-05T11:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Mp3/Wav Files with Api</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Preview-Mp3-Wav-Files-with-Api/m-p/459060#M23612</link>
      <description>&lt;P&gt;Can you elaborate on what you mean when you say you want to "preview" these kinds of audio files?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, do you mean you just want to download beginning of the file but not the entire file? In that case, note that &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-download" target="_self"&gt;the&amp;nbsp;/2/files/download endpoint&lt;/A&gt; does support "&lt;A href="https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2" target="_blank"&gt;range retrieval requests&lt;/A&gt;", so you can download a partial portion of the file, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;# this downloads just the first 10 KB of the file
curl -X POST https://content.dropboxapi.com/2/files/download \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE" \
    --header "Range: bytes=0-10000" \
    --header "Dropbox-API-Arg: {\"path\": \"/Testing/Audio/Laughter.mp3\"}" &amp;gt; out.mp3&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 16:54:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Preview-Mp3-Wav-Files-with-Api/m-p/459060#M23612</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-10-05T16:54:40Z</dc:date>
    </item>
  </channel>
</rss>

