In my application i want to upload the images to server.
I am able to upload images on server but the name of the image mention in front of filename=%@.jpg. remains
this line [body appendData:[[NSString stringWithString:@"Content-Disposition: form-data; name=\"userfile\"; filename=\"%@.jpg\"\r\n"] dataUsingEncoding:NSUTF8StringEncoding]];
Content-Type: image/jpeg
instead of Content-Disposition: form-data
and learn how to use content type