Need some help in api

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');
       }

see your other thread


Taifun

1 Like

I don’t think you can do this at the same time, I might be wrong…
Taifun

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.