NSURLSessionUploadTask and resuming
NSURLSessionUploadTask and resuming
- Subject: NSURLSessionUploadTask and resuming
- From: James Gale <email@hidden>
- Date: Tue, 08 Sep 2015 23:05:03 +0000
- Thread-topic: NSURLSessionUploadTask and resuming
Hi All,
I am working on a Desktop app for OS X 10.9 and above. The application needs to upload files to a storage server that we host. We need to be able to upload files that can be very large (the user with the issue is attempting to upload ~50Gb), sometimes the size of the files means that our users are unable to complete the upload and need to interrupt the upload and resume it later. I have been unable to find anything in NSURLSessionUploadTask or the documentation on how to start an upload from an offset that I am able to obtain from the server. I have tried to do this by creating my own stream, but I am not able to set the content length header that the server requires. Currently I have it implemented by copying the bytes to upload from the offset to the end of the file in a temp file but this will not work with the 50Gb files.
What I would like to know is there a way to make the NSURLSessionUploadTask start from an offset of the file (such as setting a range header), or getting the NSURLSessionUploadTask with stream to allow me to send a content length?
Thanks
James
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden