javascript - Drive picker upload to a team drive as opposed to personal google drive -


right have relational datasource holds attachment name, link, date uploaded , uploaded it. when select file drive picker widget uploads file own personal drive. there way set path file uploads?

i think best bet on 1 use movefile() method server scripting library provided amu:

function movefile(id, email){  var file = driveapp.getfilebyid(id);   var folder = driveapp.getfolderbyid('m9jygpq1gix29lwudwqmo5sza').addfile(file);  driveapp.getrootfolder().removefile(file);    if(email){    setfileowner(id, email);  }  

you can folder id out of url of drive.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -