Uploading image taken by camera directly to google drive

You make no mention of your google apps script web app.

Is this setup correctly as per my guide ?

What do you see in your responseContent ?

All that said, it appears to be working...

You may/will need to remove the file:// prefix from the image file path before converting to base64. You did not "copy" that from my blocks...

I presume this is using Google Drive (signed in to a Google Account) directly ?