Sagar Mohanty
Sagar Mohanty

Reputation: 237

How to upload a file to server with synchronous request?

My brain is just going to hang, I am working on same method for .....

OK, I am working on an upload code which will upload the file to the server, which is successfully working

now what I need as fallows:

started with an example-->suppose I have a file named file.txt, whose size is 30MB, when I read the contents of the file it will give me all the 30MB it contains. In the sendSynchronousRequest method I want to give request upto 10mb of data and aging calling the same thing unless it reaches at the last point of file. (in brief I want to use a loop to send the request part by part to the server

-I need to seed data with small small chunk of total file to the server -In server I need a relevant PHP to Append the contain and put in to one file at the end of request

so can anyone help me a with a relevant php and objective c code ?

waiting for your quick response !!!!

Upvotes: 0

Views: 362

Answers (1)

Saurabh Passolia
Saurabh Passolia

Reputation: 8109

as for the solution, create a multipart form request and do it via sync request. as for the code, it will be little too much to post here :)

Upvotes: 1

Related Questions