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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to