Save csv to Google Drive

I need to save a .csv file directly to Google Drive

I have looked for many ways so that the file can reach my PC from the mobile or emulator

One of the ways is to save it on your phone and then search for it to send it by mail, the procedure is very long.

With a single button I would like to send it to Drive

and...

In video 1
I already got
Client ID
client_secret

In video 2
to get
folderId and
refreshToken

I stay in at min 4:57
I don't understand where it comes from
terminal - tim@XFF2

could you guide me?

The work in the video was done on a linux OS (Xubuntu), in a terminal program.

tim@XFF2 is the name of the user@computer

That method really is the hard way to do things!

I am with windows 11

I will take the next option

should this be the url?

I'm missing

get this

if you get something with DOCTYPE, then the response content usually was an error message and not what you expected...

Taifun

A fairly simpler solution.

you can try this extension

Simply...

1 Like

I don't understand the logic TIMAI2

only with:

Can I upload files to the drive? And authentication?

to get the YOUR SCRIPT URL HERE
I have to create a spreadsheet

and the URL is this?

  1. You do not have to create a spreadsheet to create a google apps script. Go to https://script.google.com to create a standalone script.

  2. You will need to deploy your script, then get the script url. See these guides:

perform the entire procedure and failed to save:
ai2logo.png

insert the
YOUR SCRIPT URL HERE
and I don't keep anything
I get a message

Could be that your apps script needs to be run in order to give permissions.

Do this in the script editor

image

When the script runs it will fail, because no parameters have been provided, but then it should work from your app. Tested and working here. You will not need to request the WriteExternalStorage permission if using Android 10+.

still not working
it will be because I am with
function doGet(e)
and not like
function doPost(e)

If so, could you send me the content?

Where is your script for uploading a file (which is a doPost(e)) ?

I suggest you review my guide again, and add the correct script for uploading a file to google drive.

I've tried everything
maybe it's the content of my script

There in the image the name of the extension appears
base64decode

Could you send me the full text in the image it is not displayed to test