title: Create folder with Google Drive SDK iOS
body: <p>I'm trying to create a folder using the Google Drive SDK for iOS. From the Google Drive documentation here:</p>
  
  <p><a href="https://developers.google.com/drive/folder" rel="nofollow">https://developers.google.com/drive/folder</a></p>
  
  <p>It says that creating a folder is just like creating a 'file' with a special MIME type.</p>
  
  <pre><code>GTLUploadParameters *uploadParameters = nil;
  
  self.driveFile = [GTLDriveFile object];
  self.driveFile.title = foldername;
  
  uploadParameters = [GTLUploadParameters new];
  uploadParameters.MIMEType = @"application/vnd.google-apps.folder";
  
  GTLQueryDrive *query = nil;
  query = [GTLQueryDrive queryForFilesInsertWithObject:self.driveFile
                                      uploadParameters:uploadParameters];
  
  
  [self.driveService executeQuery:query completionHandler:^(GTLServiceTicket *ticket,
                                                            GTLDriveFile *updatedFile,
                                                            NSError *error) {
  </code></pre>
  
  <p>But when I perform the query, I get:</p>
  
  <p>'NSInternalInconsistencyException', reason: 'upload data and fileHandle are mutually exclusive'</p>
  
  <p>This suggests I should be using one of the predefined GTLUploadParameters factory methods:</p>
  
  <pre><code>+ (GTLUploadParameters *)uploadParametersWithData:(NSData *)data
                                           MIMEType:(NSString *)mimeType;
  
  + (GTLUploadParameters *)uploadParametersWithFileHandle:(NSFileHandle *)fileHandle
                                                 MIMEType:(NSString *)mimeType;
  </code></pre>
  
  <p>But neither of these are appropriate (or work, as I've tried). Has anyone successfully created folders using Google Drive on iOS?</p>