How can i upload file and other parameter using NSURLConnection
I am using NSURLConnection to send same data ( NSString ) to the server and i would like to add with them an image or a file so what's the value of the content type? Encoding - (NSData *)encodingData:(NSMutableDictionary *)dictionary { NSMutableArray *arrayPosts = [[NSMutableArray alloc] init]; [dictionary enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop) { NSString *encodedKey = [key stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *encodedValue = [obj stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; [arrayPosts addObject:[NSString