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
2 years agodsmurfin 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
2 years agoExplorer | Level 3
Hi Greg,
So my problem here is these are all for files < 150 MB which is well short of what I need. So I have to use an upload session which only supports provision of Data.
If the API for session allowed URLs to be provided I could chunk up my large file into tiny ones to present but it doesn’t offer that.
Thanks
So my problem here is these are all for files < 150 MB which is well short of what I need. So I have to use an upload session which only supports provision of Data.
If the API for session allowed URLs to be provided I could chunk up my large file into tiny ones to present but it doesn’t offer that.
Thanks
- Greg-DB2 years ago
Dropbox Community Moderator
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:
- dsmurfin2 years agoExplorer | Level 3Thank you! I totally missed this when looking at the API. I expect this will solve my issue, thanks!
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!