Upload file not working vie HTTP Post
问题 This function is supposed to upload an UIImage to an web form per HTTP Post. I used extracts from some posts here and on othe rsites and got to this in the end. But it doesn't work, it workes like an GET Method for url, at least for me. Could you pelase test it, too, or help me, where the mistake could be? I DON'T want to use a framework like ASIHTTPRequest please. - (NSString *)postImage:(UIImage *)image toURL:(NSURL *)url { NSData *imageData = UIImagePNGRepresentation(image);