<?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: ,please explain upload api in swift in detail in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257626#M14941</link>
    <description>&lt;P&gt;You can find the full documentation for all of the upload methods in the SwiftyDropbox SDK here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes6uploadFT4pathSS4modeOCS_5Files9WriteMode10autorenameSb14clientModifiedGSqV10Foundation4Date_4muteSb14propertyGroupsGSqGSaCCS_14FileProperties13PropertyGroup__5inputVS3_4Data_GCS_13UploadRequestCS1_22FileMetadataSerializerCS1_21UploadErrorSerializer_" target="_blank"&gt;https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes6uploadFT4pathSS4modeOCS_5Files9WriteMode10autorenameSb14clientModifiedGSqV10Foundation4Date_4muteSb14propertyGroupsGSqGSaCCS_14FileProperties13PropertyGroup__5inputVS3_4Data_GCS_13UploadRequestCS1_22FileMetadataSerializerCS1_21UploadErrorSerializer_&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you click on a method name, it will expand to show the documentation for that method, including the full method definition with parameter types and descriptions, as well as the result type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's an example of making an upload call in the readme here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox#upload-style-request" target="_blank"&gt;https://github.com/dropbox/SwiftyDropbox#upload-style-request&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for instance, in that example, to upload an audio file like you describe, you would supply the desired path for the uploaded file in the 'path' parameter, and supply the data for the file in the 'input' parameter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That example shows supplying the data as a Data object, but you can also supply a URL object or an&amp;nbsp;InputStream object.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2017 15:22:18 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-12-22T15:22:18Z</dc:date>
    <item>
      <title>,please explain upload api in swift in detail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257596#M14939</link>
      <description>&lt;P&gt;Please explain dropbox v2 uoload API in detail.&lt;/P&gt;&lt;P&gt;I did not understand it in v1 is was explained neatly.&lt;/P&gt;&lt;P&gt;If i want to upload one audio file using dropbox v2 upload api then what should be value in path and input paramter ?&lt;/P&gt;&lt;P&gt;input should be what ? file or filename or filedata or fileurl ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:16:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257596#M14939</guid>
      <dc:creator>nilesh123</dc:creator>
      <dc:date>2019-05-29T09:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: ,please explain upload api in swift in detail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257626#M14941</link>
      <description>&lt;P&gt;You can find the full documentation for all of the upload methods in the SwiftyDropbox SDK here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes6uploadFT4pathSS4modeOCS_5Files9WriteMode10autorenameSb14clientModifiedGSqV10Foundation4Date_4muteSb14propertyGroupsGSqGSaCCS_14FileProperties13PropertyGroup__5inputVS3_4Data_GCS_13UploadRequestCS1_22FileMetadataSerializerCS1_21UploadErrorSerializer_" target="_blank"&gt;https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbox11FilesRoutes6uploadFT4pathSS4modeOCS_5Files9WriteMode10autorenameSb14clientModifiedGSqV10Foundation4Date_4muteSb14propertyGroupsGSqGSaCCS_14FileProperties13PropertyGroup__5inputVS3_4Data_GCS_13UploadRequestCS1_22FileMetadataSerializerCS1_21UploadErrorSerializer_&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you click on a method name, it will expand to show the documentation for that method, including the full method definition with parameter types and descriptions, as well as the result type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's an example of making an upload call in the readme here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/dropbox/SwiftyDropbox#upload-style-request" target="_blank"&gt;https://github.com/dropbox/SwiftyDropbox#upload-style-request&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, for instance, in that example, to upload an audio file like you describe, you would supply the desired path for the uploaded file in the 'path' parameter, and supply the data for the file in the 'input' parameter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That example shows supplying the data as a Data object, but you can also supply a URL object or an&amp;nbsp;InputStream object.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 15:22:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257626#M14941</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-22T15:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: ,please explain upload api in swift in detail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257684#M14945</link>
      <description>Thanks for the information.&lt;BR /&gt;&lt;BR /&gt;when i write say "temp" as path and pass data at input it gets upload succesfully but my question now is that it doesn't recognize that its an audio file the what will be solution ? how should i do it ?</description>
      <pubDate>Sat, 23 Dec 2017 06:31:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257684#M14945</guid>
      <dc:creator>nilesh123</dc:creator>
      <dc:date>2017-12-23T06:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: ,please explain upload api in swift in detail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257758#M14948</link>
      <description>The 'path' you supply should be the full desired path in Dropbox for the uploaded file, including the file name an extension, e.g., "/Some folder/myfile.mp3".</description>
      <pubDate>Sun, 24 Dec 2017 16:34:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257758#M14948</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-12-24T16:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: ,please explain upload api in swift in detail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257822#M14953</link>
      <description>Thank you so much!!!!!!!!!!  Greg</description>
      <pubDate>Tue, 26 Dec 2017 03:50:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/257822#M14953</guid>
      <dc:creator>nilesh123</dc:creator>
      <dc:date>2017-12-26T03:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: ,please explain upload api in swift in detail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/275525#M16461</link>
      <description>&lt;P&gt;I'm getting this same "an audio error occurred" when uploading .wav files, but with the javascript sdk. I can't seem to find any documentation or examples on how this data is supposed to be passed (in what format) to the function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using filesUpload as per:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var dbx = new Dropbox({ accessToken: 'token' });&lt;/P&gt;&lt;P&gt;dbx.filesUpload({path: filePath, contents: req.body.file, mode: 'overwrite'})&lt;BR /&gt;.then(function(response) {&lt;BR /&gt;res.sendStatus(200);&lt;BR /&gt;console.log("audio saved!");&lt;BR /&gt;})&lt;BR /&gt;.catch(function(error) {&lt;BR /&gt;console.error(error);&lt;BR /&gt;response.sendStatus(400);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I've tried ArrayBuffer&lt;/LI&gt;&lt;LI&gt;UInt8Array&lt;/LI&gt;&lt;LI&gt;window.createObjectUrl(blob)&lt;/LI&gt;&lt;LI&gt;blob data&lt;/LI&gt;&lt;LI&gt;Binary data&lt;/LI&gt;&lt;LI&gt;File object&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The examples just show a "file" from a file input and passing that directly to the contents: param, but that doesn't work either.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is the data supposed to be passed for the contents param in filesUpload?&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 18:50:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/275525#M16461</guid>
      <dc:creator>jdwileymon</dc:creator>
      <dc:date>2018-05-08T18:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: ,please explain upload api in swift in detail</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/275527#M16462</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/675872"&gt;@jdwileymon&lt;/a&gt;&amp;nbsp;I don't believe this thread is&amp;nbsp;relevant to the problem you're seeing. This thread was about using the Swift SDK, but you're using the JavaScript SDK, and it also doesn't mention the "an audio error occurred" error you cited.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll follow up on your thread for this issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropboxforum.com/t5/API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275413#M16445" target="_blank"&gt;https://www.dropboxforum.com/t5/API-Support-Feedback/Audio-files-uploaded-give-quot-audio-error-has-occurred-quot-and/m-p/275413#M16445&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 19:09:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/please-explain-upload-api-in-swift-in-detail/m-p/275527#M16462</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-05-08T19:09:39Z</dc:date>
    </item>
  </channel>
</rss>

