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
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?
TIMAI2
June 15, 2024, 10:36pm
5
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!
TIMAI2:
(Xubuntu
I am with windows 11
I will take the next option
Taifun
June 16, 2024, 1:12am
8
if you get something with DOCTYPE, then the response content usually was an error message and not what you expected...
Many developers often get stuck when trying to handle the response content from an online server after making a GET request using the web component. Those trying to help often ask to see the raw responseContent being returned. When using companion this can be copied and pasted to the community for those trying to help to use with debugging. This is how you might return that information / data to a label.
BLOCKS
[image]
DATA
Do It Result:
""Name","Date of Birth","Age"
"Adah","06/04/1999","2…
Taifun
A fairly simpler solution.
1. Introduction
Description: It can be used to upload, delete, rename files/folders and listing files and folders. It provides following features
Create Folder/ Upload File
Delete Folder/ File
Move Folder/ File
Rename Folder/ File
List Folders/ Files
Get File Info
Latest Version: 2
Released: 2023-08-07T18:30:00Z (UTC)
Last Updated: 2024-03-24T18:30:00Z (UTC)
2. Blocks
[image]
[image]
[image]
[image]
[image]
[image]
3. Documentation
EventsFileUploadedByUrlEvent raised after upload…
you can try this extension
[#Mr_Koder]
Introducing the Google Drive API Extension by Mr_koder
Overview:
The Google Drive API Extension, developed by Mr_koder , is a powerful tool that enables seamless integration with the Google Drive API within your Android applications. This extension provides a wide range of features and functionalities to enhance your app's file management capabilities. With this extension, users can effortlessly upload, edit, download, rename, move, and even change permissions of files and more on …
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?
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
TIMAI2
June 19, 2024, 8:12am
15
Could be that your apps script needs to be run in order to give permissions.
Do this in the script editor
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?
TIMAI2
June 19, 2024, 2:27pm
17
Where is your script for uploading a file (which is a doPost(e)) ?
TIMAI2
June 19, 2024, 3:28pm
19
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