This method uploadFile uploads a file to Google drive folder using direct upload and returns the uploaded fileId. Attaching a sample code snippet for others reference. To transfer ownership of a file in 'My Drive', do one of the following: Create a file permission granting a specific user ( typeuser) owner access ( roleowner ). So I tried with the Google Drive V3 Java API, and found that shared drives are currently supported by default in the execute method of class of V3 APIs. After June 1, 2020, all applications will be assumed to support shared drives. But it is also mentioned that the supportsAllDrives parameter will be valid until June 1, 2020. Hope it helps.Īs per this documentation, the supportsAllDrives=true parameter informs Google Drive that your application is designed to handle files on shared drives. I found the solution with the help of fellow commenter Hence posting the answer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |