Skip to content

corey-recai/googleAppScriptUploadFiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

googleAppScript

Using Google App Script to upload multiple files to google drive.

Prerequisite

  1. Create google sheet with sheet name('responses') and with following columns: Check the sample sheet in the repository

Sample Sheet

a. timeline (description : Will auto update the record creation time).

b. name  (description : name value passed from the html form).

c. email (description : email value passed from the html form).

d. contact (description : contact no value passed from the html form).

e. resume (description : Auto populated with the google drive file url;s ).

f. skillsets (description : skillsets value passed from the html form ).

g. linkedinUrl (description : linkedinUrl value passed from the html form ).
  1. Go to the Sheet-> Tools -> Script Editor.

  2. Copy the googleAppScripts.js code into the editor.

  3. Update the constant variable (emailTo) in the googleAppScripts.js/editor with your personal email.

  4. Script Editor -> Run menu -> Run Function -> setup()

  5. Script Editor -> Run menu -> Run Function -> setup()

  6. Select the startup function -> Script Editor -> next to debug button, select function drop down -> select doPost()

  7. Script Editor -> Publish menu -> Publish as web app. a. Change the "who has access to the app" to "Anyone, even Anonymous". b. Provide required permissions. c. click on update, copy the web app url.

  8. Paste the copied web app url, into the clientScript.js -> scriptUrl variable

  9. Save everything and click the submit button on the form.

HTML FORM

About

Using google app script, upload multiple files to google drive.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.7%
  • HTML 19.3%