
Var request = (meta, stream, meta. Using (var stream = new System.IO.FileStream("Full path of the file to upload", System.IO.FileMode.Open)) (The code is C # SDK, but other SDKs will be the same) GoogleDriveUploader.cs It's almost a sample copy of Quick Start. The overall code including authentication is now like ↓. There is also a property called TeamDriveId, but you can use DriveId instead of Deprecated. CreateRequest object's SupportsAllDrives property DriveId is also copied from the URLĭriveId, like the ID of the parent folder, is the last string of the URL when you open the root directory of the shared drive in your browser. Suddenly, I had to set the following two properties. If you specify a folder ID in MyDrive that is not a shared drive as a trial, it will succeed, so there seems to be no problem with authentication and program flow. Simply, comment or send a mail to the file admin and request to remove. Or there is another way to remove your access from the shared file from a google drive. Now, right-click on the file, and select remove. When I try to upload a file to a folder in the shared drive and move it by specifying the ID of the parent folder in meta.Parents, for some reason I get the error File not found 404. To remove yourself from accessing a google drive file, you can simply go to your google drive then check the files. It's a story when using a shared drive with Google Drive API V3, because there was little information despite being super addicted, so make a note! For some reason 404 parent folder not found error
