Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
dougnull
4 years agoExplorer | Level 4
How can my Swift app upload data to Dropbox and have Dropbox create a file with it?
How can my app upload string data and a filename to Dropbox and have Dropbox create the file and store the data into it?
The SwiftyDropbox SDK's doc is a little overwhelming for me because I'm not creating a Dropbox app product and my app is for only my R&D use, not to be a product.
I have some string data and a filename and I want Dropbox to create a file with that data, and named that filename, into my existing Dropbox account.
Once a second, my Swift needs to upload 1kB to a new Dropbox file.
1 Reply
- Greg-DB4 years ago
Dropbox Community Moderator
[Cross-linking for reference: https://stackoverflow.com/questions/71426027/how-can-my-non-product-just-for-my-use-swift-app-write-data-to-a-dropbox-file ]
You can use the SwiftyDropbox SDK to integrate with Dropbox, even if your integration is not meant to be a released product. You can find instructions for getting started with the SDK here.
For example, to upload a file, you can use the the upload method. There's an example of calling that here.
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If 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, Facebook or Instagram.
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!