title: How can we upload multiple document files on Google Drive API
body: <p>I want to upload multiple document Files (ex. PDF, Text etc.) I am able to upload the single file to drive. below is my code for Single File upload to drive. I have used Document Picker Controller.</p>
  
  <pre><code>public func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentAt url: URL) {
  
  
      if let documentsDir = url as URL? {
  
          print("import result : \(documentsDir)")
  
          let indexFileName = (documentsDir.pathComponents.last)!
          print("THE FILE NAME", indexFileName)
  
          let testFilePath = documentsDir.appendingPathComponent("").path
  
          drive?.uploadFile("FolderNameOnDrive", filePath: testFilePath, MIMEType: "image/pdf") { (fileID, error) in
              print("Upload file ID: \(String(describing: fileID)); Error: \(String(describing: error?.localizedDescription))")
  
              print("THE FILE ID IS",fileID ?? "")
              print("The test File Path", testFilePath)
          }
      }
  
  }
  </code></pre>
  
  <p>The testFilePath is the document path from the document directory that enable the user to select the file.</p>
  
  <p>I have enable the <code>documentPicker.allowsMultipleSelection = true</code>. But still stuck in multiple upload.</p>