title: How to update file in google drive v3 PHP
body: <p>I cant seem to update file in google drive with the following code, everything goes fine but file remains untouched? I am working with v3 api.</p>
  
  <pre><code> function updateFile($service, $fileId, $data) {
          try {
              $emptyFile = new Google_Service_Drive_DriveFile();
              $file = $service-&gt;files-&gt;get($fileId);
              $service-&gt;files-&gt;update($fileId, $emptyFile, array(
                  'data' =&gt; $data,
                  'mimeType' =&gt; 'text/csv',
                  'uploadType' =&gt; 'multipart'
              ));
          } catch (Exception $e) {
              print "An error occurred: " . $e-&gt;getMessage();
          }
      }
  </code></pre>