Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Let anonymous users upload files to my Google Drive using the Google Drive SDK

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?

like image 620
Sparky Avatar asked Nov 07 '12 11:11

Sparky


People also ask

How do I upload files anonymously to Google Drive?

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.

Can viewers download files on Google Drive?

When someone with Commenter or Viewer access tries to download, print, or copy the shared file, those options are grayed out and not available.


1 Answers

You should use service accounts to store files on behalf of your application:

https://developers.google.com/drive/service-accounts

like image 170
Claudio Cherubino Avatar answered Oct 14 '22 04:10

Claudio Cherubino