I'm working with MIT App Inventor 2 and Google Sheets to build an app that submits photos to a Drive folder as part of an error report form. I've got the photo upload bit working through a custom Apps script by Tim AI2 that looks like this:
function doPost(e) {
var data = Utilities.base64Decode(e.parameters.data);
var blob = Utilities.newBlob(data, e.parameters.mimetype, e.parameters.filename);
DriveApp.getFolderById('<YOUR FOLDER ID HERE>').createFile(blob);
return ContentService.createTextOutput("Your File Successfully Uploaded");
}
JavaScript and I are...not friends, so I'm trying to wrap my head around grabbing the URL of the blob after it's generated and returning that instead of the status. Help?