title: upload to Google Drive folder using http
body: <p>I am trying to upload a file to a specific Google Drive folder. I was able to create the folder and get a returned id value. The problem is that the file is created at the root of the drive, not in the folder that I want it uploaded to. I do a POST to:</p>
  <pre><code>https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart&amp;access_token=XXXXX
  </code></pre>
  <p>with this header data:</p>
  <pre><code>--abc123
  Content-Type: application/json; charset=UTF-8
  
  { &quot;name&quot;: &quot;army.jpg&quot;,
  &quot;parents&quot;: [{ &quot;id&quot;: &quot;1svduc2OKHfUGkW1R0KWbKTPHxQ_cv8D_&quot; }]
  }
  
  --abc123
  Content-Type: application/octet-stream
  </code></pre>
  <p>There is no http error in response to this, everything looks fine.  It's just not in the right place. I should mention I was not able to find any Google documentation on how to upload to a folder, all the examples are for java/python/node, not http. This is just a guess based on other questions I have seen on StackOverflow. Any help in getting the syntax or whatever correct is appreciated.</p>