Greetings Everybody,
Trust you are doing well.
I work on an app that upload image to the google drive using KIO4 base 64 extension.
I have to upload 2 pictures.
The app is based on a previous question helped by the community.
link: Upload files to GDrive followed by a link of the uploaded file in Google sheet - #5 by TIMAI2
All of a sudden it stops working.
I reviewed my blocks and do not understand whats wrong.
Tried the new metricat & Juan version it works but applying theit to my context, I got errors : METRIC RAT AI2 - UpLOAD Any File To Google Drive with AI2
You can wee by blocks below.
You can find my code below :
function doPost(e) {
var data = Utilities.base64Decode(e.parameters.data);
var blob = Utilities.newBlob(data, e.parameters.mimetype, e.parameters.name);
DriveApp.getFolderById("1TzAFe8ZpCHGVoMZiXpDf8I9O2ussXoIa").createFile(blob);
return ContentService.createTextOutput("Picture of " + name +" uploaded");
}