I'm trying to upload a file using ASIHttpRequest to a classic asp script, but I've had no luck. I've been able to upload to php using the exact same ASIHttpRequest code (pasted below), but I can't figure out the ASP classic script.
NSString *layoutPath = [NSString stringWithFormat:@"%@/%@", [settings layoutPath], [[layouts objectAtIndex:indexPath.row] layoutName]];
__block ASIFormDataRequest *uploadRequest = [[ASIFormDataRequest alloc] initWithURL:[device urlForUploadLayout]];
[uploadRequest setFile:layoutPath withFileName:[layoutPath stringByDeletingPathExtension] andContentType:@"application/x-plist" forKey:@"userfile"];
[uploadRequest setCompletionBlock:^
{
// Handle response
}];
[uploadRequest startAsynchronous];
Any help would be appreciated
I'd also prefer having no components