title: Cannot upload file to google drive from laravel using guzzle
body: <p>I am trying to upload files to google drive (v3 api), but the request returns unsupported content error. The same request works fine in postman</p>
  <pre><code>$client = new Client();
      
  $headers = [
      'Authorization' =&gt; 'Bearer '.$token,
     ];
  $upload = $client-&gt;request('POST', 'https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart', [
                   'multipart' =&gt; [
                       [
                          'name'     =&gt; 'metadata',
                          'contents' =&gt; json_encode($data)
                       ],
                       [
                          'name'     =&gt; 'media',
                          'contents' =&gt; file_get_contents($file)
                       ]
                   ],
                     'headers' =&gt; $headers,
             ]);
  </code></pre>
  <h3>Success Postman request</h3>
  <p><img src="https://i.stack.imgur.com/xHLUD.png" alt="postman sample" /></p>
  <h3>Request Headers</h3>
  <p><img src="https://i.stack.imgur.com/8Jk2P.png" alt="request headers" /></p>
  <h3>data.json</h3>
  <pre><code>{
    &quot;name&quot;: &quot;data.json&quot;,
    &quot;parents&quot;: [
        &quot;&lt;id here&gt;&quot;
    ]
  }
  </code></pre>