Re: Uploading in it's own thread.
Re: Uploading in it's own thread.
- Subject: Re: Uploading in it's own thread.
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Thu, 31 Mar 2011 11:16:47 +0100
On 30 Mar 2011, at 19:48, Gordon Apple wrote:
> Is there anything I need to know to keep that connection up, at least until all the files in the queue have been uploaded?
I presume we're talking about iOS again [1]. In that case all you need to do is start a background task with each upload. The background task will ensure that the app stays running in the background while the upload proceeds. Of course there's a limit to how much time the background task will allow you (typically 10 minutes) after which your expiry handler will run and you need to stop the upload. Which brings us to...
> Also, in such case, is there any good way to manage loss of the WiFi (or other) connection and resume or retry when it is again available?
Regardless of how you handle background execution, you really do want to implement resumable uploads. How you do this depends on the HTTP API provided to you by the server. In short, you're going to have to ask DropBox about this (unless someone else on the list can chime in).
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
[1] Discussing iOS on this list is fine as far as I'm concerned, but it's hard to give concrete answers without knowing the platform.
_______________________________________________
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