Uploading local file to Google Drive
===

I'm looking at the code taken from official documentation shown below to upload file from local hard drive to Google Drive. Can someone help me with the form that I would use to post the necessary JSON and media?

    def post(self):
    """Called when HTTP POST requests are received by the web application.

    The POST body is JSON which is deserialized and used as values to create a
    new file in Drive. The authorization access token for this action is
    retreived from the data store.
    """
    # Create a Drive service
    service = self.CreateDrive()
    if service is None:
      return

    # Load the data that has been posted as JSON
    data = self.RequestJSON()

    # Create a new file data structure.
    resource = {
      'title': data['title'],
      'description': data['description'],
      'mimeType': data['mimeType'],
    }
    try:
      # Make an insert request to create a new file. A MediaInMemoryUpload
      # instance is used to upload the file body.
      resource = service.files().insert(
          body=resource,
          media_body=MediaInMemoryUpload(
              data.get('content', ''),
              data['mimeType'],
              resumable=True)
      ).execute()
      # Respond with the new file id as JSON.
      self.RespondJSON(resource['id'])
    except AccessTokenRefreshError:
      # In cases where the access token has expired and cannot be refreshed
      # (e.g. manual token revoking) redirect the user to the authorization page
      # to authorize.
      self.RedirectAuth()