Uploading Files in the Background

Hi all,

I have a large file to upload server. This process requires 3 steps.

The first is to inform the server about the file ( #of chunks size, name etc.., Type: DataTask)

The second step starts according to the server response (contains next step data). (Type: FirstOperation)

In the second step, each file chunk is transmitted to the server. In the last step, Client send a request to informed that the transfer has been completed (Type: ChunkOperation)

in the third steps, service dosent work. I can see in the log file that last operation method called, but no response available. (LastOperation)

There is no problem while the application is in the foreground..

I found something that in background operation SDK dosen't support dataTask. I got response when I changed dataTask to uploadTask in the last step.

thanks all

Uploading Files in the Background
 
 
Q