<?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 Audio files uploaded give &amp;quot;audio error has occurred&amp;quot; and the files are corrupted in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275413#M16445</link>
    <description>&lt;P&gt;As in the title, more details here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/50223863/uploaded-wav-audio-file-is-unreadable-corrupted?noredirect=1#comment87465268_50223863" target="_blank"&gt;https://stackoverflow.com/questions/50223863/uploaded-wav-audio-file-is-unreadable-corrupted?noredirect=1#comment87465268_50223863&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:13:29 GMT</pubDate>
    <dc:creator>jdwileymon</dc:creator>
    <dc:date>2019-05-29T09:13:29Z</dc:date>
    <item>
      <title>Audio files uploaded give "audio error has occurred" and the files are corrupted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275413#M16445</link>
      <description>&lt;P&gt;As in the title, more details here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/50223863/uploaded-wav-audio-file-is-unreadable-corrupted?noredirect=1#comment87465268_50223863" target="_blank"&gt;https://stackoverflow.com/questions/50223863/uploaded-wav-audio-file-is-unreadable-corrupted?noredirect=1#comment87465268_50223863&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:13:29 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275413#M16445</guid>
      <dc:creator>jdwileymon</dc:creator>
      <dc:date>2019-05-29T09:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Audio files uploaded give "audio error has occurred" and the files are corrupted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275529#M16463</link>
      <description>It looks like there are a few parts to your code on StackOverflow, so it would be good to isolate where the issue is exactly. I.e., where does the data go from being the expected value to something else?&lt;BR /&gt;&lt;BR /&gt;There's an example of uploading using the JavaScript SDK here, where the file object is passed in directly to the 'contents' parameter of the filesUpload method:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html#L54" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/upload/index.html#L54&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That example works fine for me. Are you able to run it successfully?&lt;BR /&gt;&lt;BR /&gt;For your code, what environment are you using, and what is `req.body.file` exactly? Where is the data that you want to upload coming from originally?&lt;BR /&gt;&lt;BR /&gt;In order to validate the uploaded file, you can `console.log(response)` to see the metadata for the uploaded file, e.g., to see the file size. I also recommend checking the uploaded file on the Dropbox web site, in order to see if it worked as expected before adding other potential points of failure.</description>
      <pubDate>Tue, 08 May 2018 19:18:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275529#M16463</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-08T19:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Audio files uploaded give "audio error has occurred" and the files are corrupted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275530#M16464</link>
      <description>&lt;P&gt;I took the example code from that and plugged it in to my use case. Meaning, instead of recording audio to send as the file I uploaded from the file input, but it gave me the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To your point of the data expected vs something else, I'm confused as to what that data should be. To the examples, I assumed I could take the data (i.e. the recorded audio in Blob form) and pass it as a file. I've also tried converting the Blob to File: var fileBlob = new File([myblob], "filename"); as I saw this example passing the file object directly, but it's still not openable or useable after upload.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The environment is node.js server and everything else (audio recording) in browser.&amp;nbsp;&lt;SPAN&gt;`console.log(response)` shows [Object] for when I send the data converted to File, or as the other types I specified in my attempts (string, encoded string, etc).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Checking the file in Dropbox via the site is the problem I'm referring to, it gives an "an audio error occurred" there, and when synced loads as "corrupted". Let me know if I can provide more info.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:54:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275530#M16464</guid>
      <dc:creator>jdwileymon</dc:creator>
      <dc:date>2018-05-08T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Audio files uploaded give "audio error has occurred" and the files are corrupted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275531#M16465</link>
      <description>To your question of "req.body.file" - that's the data I'm passing, either File object, blob, etc.</description>
      <pubDate>Tue, 08 May 2018 19:53:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275531#M16465</guid>
      <dc:creator>jdwileymon</dc:creator>
      <dc:date>2018-05-08T19:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Audio files uploaded give "audio error has occurred" and the files are corrupted</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275533#M16466</link>
      <description>What is the type and size of "req.body.file" before you modify it though, and what does it contain?&lt;BR /&gt;&lt;BR /&gt;It's hard to offer insight as I don't know exactly what you're working with. Are you using Express or something? Is `req.body.file` getting set by some middleware? What, if so? It might be more helpful if you can provide a full sample.&lt;BR /&gt;&lt;BR /&gt;Also, in Node, `console.log(response)` will just show you the type in this case, but you can access the different properties, e.g., `response.size`.&lt;BR /&gt;&lt;BR /&gt;By the way, I linked to the browser JavaScript upload example, but here's the Node JavaScript upload example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/node/upload.js#L17" target="_blank"&gt;https://github.com/dropbox/dropbox-sdk-js/blob/master/examples/javascript/node/upload.js#L17&lt;/A&gt;</description>
      <pubDate>Tue, 08 May 2018 20:30:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275533#M16466</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-08T20:30:04Z</dc:date>
    </item>
  </channel>
</rss>

