Files Upload to google drive stops working

Hello, trust you are doing well.

You will find attached the aia. Still same issue on my side :confused:

FTEST.aia (26.1 KB)

and your script.....

function doPost(e) {
    
  var data = Utilities.base64Decode(e.parameters.data);
  
  var name =  e.parameters.name ;

  var filename =  name + ", Orders of the " + Utilities.formatDate(new Date(), "GMT+4", "EE dd-MM-yyyy HH:mm:ss");

  var blob = Utilities.newBlob(data, e.parameters.mimetype, filename);

  DriveApp.getFolderById("xxxxxxxxxxxxxxxxxxxxxx").createFile(blob);

  return ContentService.createTextOutput("Picture of " + name + " uploaded");



}

OK error in your blocks. You need to use UriEncode not UriDecode

image

for both picture uploads.

Apart from that, it all works fine. (Of course including your folderID in the script :wink: )

Shame on me, thank you very much.

Its works like a charm

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