Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ballerapp
4 years agoNew member | Level 2
Swift IOS upload large files when app is in background
Is there any way we can upload large files when app is in background using SwifyDropBox? If not then how can we achieve this using NSURLSESSION in swift and DropBox HTTP Requests?
Greg-DB
Dropbox Community Moderator
4 years agoSwiftyDropbox does not currently support background uploads, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
If you want to implement your own uploading code outside of SwiftyDropbox, you can do so using the HTTP endpoints. In particular, for uploading large (greater than 150 MB) files, you'll need to use the upload sessions functionality.
Greg-DB
Dropbox Community Moderator
3 years agoWe've released a beta version of SwiftyDropbox with some significant updates, such as support for background sessions. You can find more information here: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Beta-version-of-major-SwiftyDropbox-update-available/td-p/695441
- Greg-DB2 years ago
Dropbox Community Moderator
The beta mentioned above has been promoted to stable release. Read more about it here: https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Major-SwiftyDropbox-update-available/td-p/737816
- dsmurfin2 years agoExplorer | Level 3Hi Greg,
I’m intrigued as to how to use the new background functionality with large files using an upload session in SwiftyDropbox.
The API for upload sessions is to provide a Data, but crashes when using a background client with the message:
'Upload tasks from NSData are not supported in background sessions.'
Any thoughts?
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!