I'm building a web app where I need to let users upload files. I want to store the files uploaded by all the users in 'my' central Google Drive. The users shouldn't have to login to their Google Accounts or authorize the app, because they will be uploading to my Google Drive. Is this possible?
The best option is to create a secondary/temporary Google account. Create a folder on it and transfer ownership to the primary account. Upload files to that folder. When you transfer ownership of a folder from yourself to another person, the new owner of the folder becomes an editor of the files in that folder.
When someone with Commenter or Viewer access tries to download, print, or copy the shared file, those options are grayed out and not available.
You should use service accounts to store files on behalf of your application:
https://developers.google.com/drive/service-accounts
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With