Questions about uploading files via background NSURLSession
Questions about uploading files via background NSURLSession
- Subject: Questions about uploading files via background NSURLSession
- From: Rick Mann <email@hidden>
- Date: Tue, 03 Feb 2015 11:38:46 -0800
My app has to upload dozens of ~10MB files, and a few ~50K files. It prioritizes sending the small files first, and then prioritizes some large files over others. It only sends one file at a time, partly because it loads the contents into RAM to do the upload, and partly because it was easier to code that way.
Can I prioritize in the same way with background NSURLSessions? Obviously, I could wait until NSURLSession tells me it has finished one upload before I start the next, but it seems like this is neither the desired use, not guaranteed to let me keep uploading files in the background (shouldn't I give all the files to NSURLSession all at once, to ensure they're all available for background uploading)? Will the system take care of limiting how many it uploads at a time to maximize throughput? Will it upload them in the order I presented them?
Thanks,
--
Rick Mann
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden