Help updating file to google drive folder

hi, using this post:
good post

i'm not able to process (please see the joined picture).

is my test folder ID wrong?

function doPost(e) {
  var data = Utilities.base64Decode(;
  var blob = Utilities.newBlob(data, e.parameters.mimetype, e.parameters.filename);
  DriveApp.getFolderById('12iBbnzYMPda88DTTUjgGS8oQ7F17HMFF') .createFile(blob);
  return ContentService.createTextOutput("Your File Successfully Uploaded");

Could please someone help?test.aia (84.4 KB)

You don't appear to have created a web app with google apps script ? ( I see you have put the script code into the web app URL block!). Read the following:

then create your web app, get the url for the web app (it ends in "exec") and place this in the url block.

Also, if you change your script after you publish:

1 Open the script project
2 Go to Publish
3 Deploy as Web App
4 Project version: - select New from the dropdown
5 Execute the app as: your google account address (email)
6 Who has access to the app: Anyone, even anonymous
7 Press the Update button

You have to do this EVERY TIME you change your script

Well i guess that i'm not at this level already, but i'll take a look. Thanks tim.

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