We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
nilesh123
7 years agoExplorer | Level 3
,please explain upload api in swift in detail
Please explain dropbox v2 uoload API in detail. I did not understand it in v1 is was explained neatly. If i want to upload one audio file using dropbox v2 upload api then what should be value in pa...
- 7 years ago
You can find the full documentation for all of the upload methods in the SwiftyDropbox SDK here:
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.
There's an example of making an upload call in the readme here:
https://github.com/dropbox/SwiftyDropbox#upload-style-request
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.
That example shows supplying the data as a Data object, but you can also supply a URL object or an InputStream object.
- 7 years agoThe '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".
Greg-DB
Dropbox Staff
You can find the full documentation for all of the upload methods in the SwiftyDropbox SDK here:
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.
There's an example of making an upload call in the readme here:
https://github.com/dropbox/SwiftyDropbox#upload-style-request
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.
That example shows supplying the data as a Data object, but you can also supply a URL object or an InputStream object.
nilesh123
7 years agoExplorer | Level 3
Thanks for the information.
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 ?
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 ?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 9 hours agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!