Create an embeddable form that can be used to allow anyone to upload files to your Google Drive
You can create a copy of DriveDrop by clicking below
- Clone the code
- Select 'Publish โ Deploy as web app'
- Set 'Execute the app as: Me'
- Set 'Who has access to the app: Anyone, even anonymous'
- Click 'Update'
From here you will get a prompt that says
Authorization required
DriveDrop by mholgatem (Master) needs your permission to access your data on Google.
- Click 'Review Permissions'
- Select the account that you want files to upload to
- You will get a scary looking warning because you have not submitted this app to be verified by Google
- Click advanced
- Click 'Go to DriveDrop by mholgatem (Master) (unsafe)'
- This will show you the consent screen, review the permissions, then click 'Allow'
Congratulations! Your form is now live! Anyone with the link can now upload files to your Google drive!
If you want to embed your new form, you need to make a few changes to the code:
- Open server.gs
- Find the Config section for the picker
PICKER :
{
embedded : false, //set to true if you want to embed in an Iframe
URL : "https://script.google.com", // default URL
embedURL : "http://your.website.com" // URL to use if embedded
}
- set embedded to 'true'
- set embedURL to the URL of your site