Skip to content

Instantly share code, notes, and snippets.

View davids-tips's full-sized avatar
💭
working when I have time

David Powell davids-tips

💭
working when I have time
View GitHub Profile
@tanaikech
tanaikech / submit.md
Last active April 16, 2024 08:06
Uploading Local Files to Google Drive without Authorization using HTML Form

Uploading Local Files to Google Drive without Authorization using HTML Form

This is a sample script for uploading local file to Google Drive without the authorization using HTML form. A selected file in your local PC using HTML form is uploaded to Google Drive and saved to Google Drive.

When you use this, at first, please deploy Web Apps. The script is doPost() of following scripts.

Script : Google Apps Script

function doPost(e) {
 var data = Utilities.base64Decode(e.parameters.data);