title: Reliably upload large files to Google Drive
body: <p>I am using the Python googleapiclient to upload some large files to Google Drive. I want to make sure the files are uploaded correctly. I looked for ways to get the file's MD5 checksum on Google Drive with no luck. Here is the code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>def print_file_metadata(service, file_id):
      """Print a file's metadata.
  
    Args:
      service: Drive API service instance.
      file_id: ID of the file to print metadata for.
    """
      try:
          file = service.files().get(fileId=file_id).execute()
  
          print('Title: %s' % file['title'])
          print('MIME type: %s' % file['mimeType'])
      except errors.HttpError as error:
          print('An error occurred: %s' % error)</code></pre>
  </div>
  </div>
  </p>
  
  <p>For the files I tested, it appears the file dict does not contain its MD5 checksum. Is there any way to get it from the API? Or is there another way of checking if file has been uploaded correctly?</p>