I want to send an image to the server as a multipart data.
The data must be concated at the header part and not at the body part and the Content-Disposition: part must be left blank.
Any code is really appreaciated. Thanks in advance
For example
NSString *contentType = [NSString stringWithFormat:@"multipart/form-data; boundary=%@",boundary];
[request addValue:contentType forHTTPHeaderField: @"Content-Type"];
I want to append the data in the content type. How it can be done like for boundary there is boundary=%@ so for concating the data what keyword mus be used? _=%@.?