title: Uploaded Google Drive file can't be updated via API
body: <p>I would like to ask for your help regarding the updating of a file on Google Drive.
  I created a XLSX file locally and uploaded it to GD. In my frontend I then append a row to the XLSX. This updated XLSX should then be updated/uploaded to GD and replace the old file.</p>
  
  <p>The code snippet for the upload looks like this:</p>
  
  <pre><code>const res = await fetch(`https://www.googleapis.com/upload/drive/v3/files/${fileId}`?uploadType=multipart`, {
            mode: 'cors',
            method: 'PUT', 
            headers: { Authorization: `Bearer ${this.token}` },
            body: payload,
          });
  </code></pre>
  
  <p>This results in an error code 404, however I don't see why the permissions wouldn't be sufficient as I created the file with the same permissions.
  I read that PUT should be used instead of PATCH, but that results in the same error.</p>
  
  <p>I really don't know what to make of this because it works, if I do it like this:</p>
  
  <pre><code>const res = await fetch(`${Urls.upload}?uploadType=multipart`, {
            ...baseFetchOpts,
            method: 'POST',
            headers: { Authorization: `Bearer ${this.token}` },
            body: payload,
          });
  </code></pre>
  
  <p>But then a new file is created.</p>
  
  <p>I would really appreciate your insights and help on this topic!</p>
  
  <p>Regards,
  Fabian</p>