i want to upload file in google app scirpt which i am able to, but i want to upload files for notes, assignments and timetable so i have a doubt that how will the app script identify it? And one solution I have is sending plain text along with file, the plain text will contain notes or assignment or timetable accordingly but i don’t know how to add the plain text along with do post method
Blocks:
App script code:
> function doPost(e) {
var data = Utilities.base64Decode(e.parameters.data); var blob = Utilities.newBlob(data, e.parameters.mimetype, e.parameters.filename); DriveApp.getFolderById('1BEcF*********zsxFrTEs').createFile(blob); return ContentService.createTextOutput("Your File Successfully Uploaded"); Logger.log('data'); }