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?
SwiftyDropbox 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.
We'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
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
@dsmurfin The SwiftyDropbox methods for uploading files accept file data as Data, URL, or InputStream. For example, here's the three versions of the "upload" method:
Can you try URL or InputStream instead and see if that works for you?
@dsmurfin The examples I included in my previous message happened to be for the (non-upload session) "upload" method, but the upload session methods also support the same three ways of supplying file contents. For instance, here are the three versions of the uploadSessionStart method: