tanaikech / Resumable_Upload_For_WebApps

This is a sample script for uploading files with large size (> 50 MB) at Web Apps using Google Apps Script (GAS). The resumable upload method is used for uploading files. This script can be also applied to the script using gapi of javascript.
MIT License
47 stars 12 forks source link

file saved in logged in gdrive not one specific gdrive #7

Open saqaw opened 4 years ago

saqaw commented 4 years ago

if i have domain and hosting.then i can create web form where i have some input box and file uploading option .then data will be saved in mysql and file upload on hosting. but i want to do it free . Basically, what I am hoping to achieve is a simple html form with a few input text fields & a file upload option. I would like the input fields to populate a google sheet & the file upload to be sent to a specific folder only on one specific google drive id like "wqqs@gmail.com" The sheet should store the input field’s data, but also a url to the uploaded file.

i test your code its working perfectly but it saves file in logged in gdrive not specific gdrive.

when in chrome browser i am loggedin as waqas@gmail.com,it save file in waqas gdrive. and when in chrome browser i am loggedin as fahad@gmail.com,it save file in fahad gdrive.

but i want files always saved in "wqqs@gmail.com"

is that possible or not

saqaw commented 4 years ago

https://script.google.com/macros/s/AKfycbyJYDylkcWS-oJVCtgwzIyNNkiGm_KGOU9e8wDRV6Z8FkN6Vqk/exec

project uploaded here