Upload the file to Google drive using API and error 403
问题 I want to upload the zip-file to Google drive. I use Java Quickstart (https://developers.google.com/drive/v3/web/quickstart/java) as base. The code works. I modified it by the following code File fileMetadata = new File(); fileMetadata.setName("My Report"); fileMetadata.setMimeType("application/vnd.google-apps.spreadsheet"); java.io.File filePath = new java.io.File("files/report.csv"); FileContent mediaContent = new FileContent("text/csv", filePath); File file = driveService.files().create