asynchronous upload with NSURLSession will not work but synchronous NSURLConnection does
edit: I need to upload a file asynchronously from an iPhone to a Python server-side process. I'd like to do the request asynchronously so that I can display a busy animation while it's working. The request needs to include the username, password and file as 'multipart/form-data'. I can get it working synchronously using NSURLConnection with the code looking like this:: -(void) uploadDatabase{ Database *databasePath = [[Database alloc] init]; NSString *targetPath = [databasePath getPathToDatabaseInDirectory]; NSData *dbData = [NSData dataWithContentsOfFile:targetPath]; NSString *url = @"http:/