#107 new
Maxime PERNET

Resume interupted upload with ASIHTTPRequest

Reported by Maxime PERNET | October 3rd, 2012 @ 03:02 PM

I'm sending big file to a server. The server manage interupted download. I just want to upload the end of a file.
This is the code i'm using :
ASIHTTPRequest *requestUpload = [ASIHTTPRequest requestWithURL:urlUpload];
[requestUpload setPostBodyFilePath:tmpfile]; [requestUpload setShouldStreamPostDataFromDisk:YES]; [requestUpload startSynchronous];

With a previous request the server already tell me from wich byte I can start. So I also add header to tell to the server where I'm starting upload. The file "tmpfile" is to big to load all the data so that why i'm using you method setShouldStreamPostDataFromDisk:YES.

How can I proceed with ASIHTTPRequest in order to resume upload of this file from a given byte ?

Regards

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Easy to use CFNetwork wrapper for HTTP requests, Objective-C, Mac OS X and iPhone

People watching this ticket

Pages