Uploading an image from iPhone to .net ashx handler
问题 I'm working on uploading an image from an iPhone to my server with an ashx script receiving the image. The problem I'm having is that regardless of everything I've tried context.Request.Files is empty. Here is my xcode code NSData *imageData = [[appDelegate currentProjectData] objectForKey:@"frontImage"]; NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"http://www.****.com/iPhoneJpgUploadHandler.ashx"]]; [request setHTTPMethod:@"POST"]; NSString