title: Python: How to upload files to a specific folder in Google Drive using folderId
body: <p>So I am in the process of trying to upload a file to a specific Google Drive folder that a user specifies. Below is the code I have tried. I get the folderID and I try to post a file to the folder however I get a <code>404 Not Found</code> error.    </p>
  
  <pre><code>def post_file(self, files_to_send, config = {}):
    if config:
      if type(config) is str:
        config = literal_eval(config)
      path_id = config.get('path')
    for file_to_send in files_to_send:
      filename = file_to_send.name.split('/')[-1]
      status = self.call.post('https://www.googleapis.com/upload/drive/v2/files?uploadType=media/' + str(path_id) + "/children")
  </code></pre>
  
  <p>Using the interface on the Drive API documentation, I am able to get data with the same folderID but I am not able to post (Even with the interface). <code>Files_to_send</code> is a list with all the files that I need to upload to the specific folder, and <code>config</code> contains the folder path. </p>
  
  <p>I need help understanding what I am doing wrong. I have read the documentation and looked at other answer but I have not found a solution. When I don't specify the folder ID, a dummy file does get posted to my drive, but it doesn't upload the file I want, and it doesn't upload anything at all when I specifiy a folderID.</p>
  
  <p>Essentially, I need help inserting a file that comes in to a specific folder in Google Drive.</p>
  
  <p>Thanks!</p>