15,160 questions
0
votes
1
answer
44
views
Download public "Shared with Anyone" files from google drive folder via Node.js and googleapis
I am trying to read a list of files in a publicly shared Google Drive file. I am trying to identify a particular csv file by name and download it daily as the folder maintainer creates a new version ...
-2
votes
1
answer
57
views
Google Driver "open with" issue - Error 400: redirect_uri_mismatch
I'm new to google console, and I'm trying to make a web app, so file with app on google drive. Current I have applied OAuth client and Google Drive UI Integration, and made a web server to handle ...
2
votes
2
answers
91
views
Not able to export Google Drive files using drive.file scope
As mentioned in Drive V3 - files.export API documentation and API scopes documentation, if I have access to drive.file scope I should be able to export the drive dcoument, but it is not working as ...
0
votes
1
answer
41
views
Cannot create files using auth/drive.file OAuth scope
I am working on a Google Sheets Addon written in Apps Script. I have been recommended by the review team to use the https://www.googleapis.com/auth/drive.file scope but I can't find any way to make it ...
0
votes
0
answers
36
views
How to Access Google Drive Files Programmatically Using drive.file Scope and Picker setFileIds()?
I am developing an application that processes resumes submitted via Google Forms, storing them on Google Drive. Our app uses ATS scoring and filtering algorithms to evaluate these resumes. I want to ...
0
votes
1
answer
73
views
Unable to get CSP working right with SvelteKit, Google API and iFrames to Google Drive
I had it working but was getting the following warnings when dynamically generating iFrame elements.
Refused to frame 'https://drive.google.com/' because an ancestor violates the following Content ...
2
votes
1
answer
65
views
Storing Google Drive API Access Token in Redis Causes 401 UNAUTHENTICATED Error
I’ve built a web application that uses the Google Drive API across multiple pages. On each page, I need to make authenticated API calls to Google Drive. When I log in on a page, I obtain an access ...
1
vote
1
answer
117
views
Using Google File Picker to reduce drive scopes in apps script add-on
I am working on a Google Docs Extension (Add-on) that exports a file into the same folder as the current document. I need my script to use the narrowest scopes so it can pass the verification process ...
0
votes
0
answers
27
views
Google Drive API: Getting subscriptionRateLimitExceeded despite implementing exponential backoff and delay strategies [closed]
I'm working with the Google Drive API and I'm facing an issue with rate limiting when subscribing to file updates using drive.files.watch. Despite implementing an exponential backoff strategy with ...
0
votes
1
answer
103
views
How can I filter Google Drive Activity API on permissionChange?
I am using the Google Drive Activity API to query the activity of a team/shared drive.
https://developers.google.com/drive/activity/v2/reference/rest/v2/activity/query?apix_params=%7B%22resource%22%3A%...
1
vote
1
answer
56
views
Not able to convert Excel file into google sheet
I have an XLS file in Google Drive. Using Google Apps Script, trying to convert to Google Sheets. But it is being stored as Google Docs instead.
function readBlob() {
var file = DriveApp.getFileById(...
1
vote
1
answer
76
views
Getting activeDocument with drivefile scope in an add-on
I've built a Google Workspace Add-on for Google Docs that allows users to highlight specific text when selecting a menu option. The function relies on DocumentApp.getActiveDocument() to modify the ...
0
votes
1
answer
58
views
What does "Bad file descriptor" mean in the context of uploading files?
I have a strange Bad file descriptor error with some users when performing a resumable upload using Google Drive API in dart using the http package. The issue only seems to affect certain users of my ...
1
vote
0
answers
101
views
Google Signin asks for too much information
I have integrated Google Drive and Google SignIn into a Flutter app.
The authentication process relies on the google_sign_in package maintained by the Flutter team.
Unfortunately, when using this ...
0
votes
0
answers
33
views
Creating a Google Apps Script that redirects to a shared Google Folder [duplicate]
I know literally nothing about Google Apps Script or coding at all (and even made my stackoverflow account just for this question), so I'm going to lay out exactly what I'm going for.
I am going to ...
1
vote
2
answers
59
views
Changing access option of a file using Google Drive API
Is it possible to change the access option of a file in Drive from 'Restricted' to 'Anyone with the Link' using Google Drive API?
filename= 'filename' file_metadata = { 'name' : filename, 'parents' : [...
0
votes
1
answer
65
views
Same appscript function (GG Sheets to PDF) doesn't work for a different sheet of the same file
This function works for one sheet in my file.
function createBulkPDFs() {
const docFile = DriveApp.getFileById("1jcRQ3MWZFLZFJ3sgpXEC-CQ6kdhScREuxzK3YnTGidw");
const tempFolder = DriveApp....
-2
votes
1
answer
58
views
How do I explicitly allow certain files to be used through google drive?
I am using codename one to develop a mobile app (irrelevant to the issue). The mobile app needs the ability to write to a specific google sheet owned by me, and read from another also owned by me. It ...
0
votes
1
answer
74
views
google picker cannot select multi item
I use demo code from goole-https://developers.google.com/drive/picker/guides/sample and fill what I should complete like API_KEY;but cannot selet multi file still; I copied the dom and I can find aria-...
1
vote
1
answer
65
views
Access Google Drive folder files with drive.file scope
I have a PHP app needing to query all subfolders of a target folder, to create galleries fetching the subfolder images.
Until now I used the drive.metadata.readonly scope, but Google is not approving ...
0
votes
0
answers
35
views
Google Sign-In Failure with Drive Scope on TV Device
The following method has been working for 3–4 years but suddenly stopped functioning:
Code :
GoogleSignInOptions signInOptions =
new GoogleSignInOptions.Builder(GoogleSignInOptions....
-4
votes
0
answers
79
views
Why does it take more than 2 seconds until a file download via the google drive api (files.get with parameter alt=media) starts?
I am downloading files from my google drive using the Drive API:
GET https://www.googleapis.com/drive/v3/files/{id}?alt=media
For some reason it always takes more than 2 seconds until the server ...
0
votes
0
answers
69
views
error 400_redirect_uri_mismatch (live Server)
I have been struggling for weeks trying to open Drive picker on web app but i keep getting the same error : 400 redirect_uri_mismatch. I am using Appscript.
Note : I use live server on visual studio ...
0
votes
0
answers
38
views
Google Drive API: Starred folder update does not reflect in Google Drive
I am trying to update the starred value of a Google Drive folder using the Google Drive API but it is not reflecting in Google Drive.
The name is getting updated but the starred value is not getting ...
0
votes
0
answers
46
views
List.execute() of API Google Drive doesn't work
I'm trying to implement Google Drive backup functionality in my Android app, written in Java, but when calling execute(), the code in debug mode doesn't proceed and keeps running indefinitely, as if ...
1
vote
1
answer
77
views
Minimal Google Drive scope to select folder and move files there
I am writing a Google Workspace add-on where the script creates one Google Document for each line in a Google Sheet owned by the user. The Google Documents are saved in the root of the user's Google ...
0
votes
1
answer
30
views
Javascript Drive API nextPageToken never changes
I am trying to build a Chrome Extension using the Drive API. I believe I have it working mostly but I keep getting the same nextPageToken on recursive calls. I want to be able to list all the file's ...
1
vote
1
answer
55
views
Save Gmail Attachment to Google Drive by Label, then Change the Label Name
I've looked through several of the similar questions that have been asked, but I just can't get it to work for what I am doing. I need to get attachments from specific labels, move them to a google ...
0
votes
0
answers
67
views
How to export Google Docs as PDF with batch requests?
I am working on implementing a system to generate google docs and then export them using JavaScript using the Google API service. I have been able to make the docs, and make changes to them, but now I ...
0
votes
2
answers
87
views
Exiting While loop
I am using a helper function to search for a folder in Google Drive that contains a number. I want to search all folders and subfolders of a specific folder. The problem is that when it finds it it ...
0
votes
1
answer
92
views
Use Google Drive API with google service account from Expo app (react native)
I am quite new in app development with Expo (react native).
I am trying to access the google drive API from my application (for private use), to have the app read some files which are in a specific ...
0
votes
0
answers
72
views
Google Drive API: files.get_media()
I have been trying for weeks to just get a docx file from Google Drive using their API. I understand the way to do this would be to use the get_media method, which has worked and I am able to get the ...
0
votes
0
answers
29
views
Can't display jpg files from the cache of my app Android React-Native
I'm trying to alternate between displaying Reddit and .jpg cache images.
However, when I try to fetch .jpg images from my cache, only one image is recovered and I either can't see the other images or ...
0
votes
0
answers
68
views
Langchain - GoogleDriveLoader
I am using the following loader for a google drive RAG solution, to get all the files in a folder:
loader = GoogleDriveLoader(
folder_id=folder_id,
token_path="token.json",
...
0
votes
0
answers
105
views
Get workspace drive files along with sharing information
I have a requirement to get the list of files from drive which are shared in last 7 days within my company google workspace.
For example:
[file name: abc.txt
shared on: 19th Dec
shared with: Rick
...
0
votes
0
answers
72
views
PKIX path building failed: unable to find valid certification path to requested target when accessing Google APIs in Java
I am encountering the following error when attempting to access Google APIs in Java:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid ...
0
votes
0
answers
45
views
Changing a google drive file label value via API Python
I've been trying to modify the label value of a file using the following code.
However, it's not working. Do you have any ideas?
# Import Libraries
import os
from google.oauth2.credentials ...
0
votes
1
answer
56
views
How to Modify Files Selected with Google Picker While Using drive.file Scope in Python?
I’m working on a Python Flask project with Google Picker and Drive APIs, aiming to allow users to select files from their Google Drive and modify them. For security and user control reasons, I’m using ...
0
votes
0
answers
38
views
Is there a way to allow access to specific folder in Google Drive with Googl Picker on the backend?
My application intends to read all files in users selected folder. Users should be able to select folder using Google Picker.
I have read the documentation for the scope. I think drive.file should be ...
0
votes
0
answers
54
views
Moving files inside a google shared drive
I'm trying to move some files from one folder to another inside a Google shared drive using Apps Script.
The log says that all the files are being moved successfully but this does not happen.
I ...
0
votes
0
answers
72
views
Microsoft.Maui.Authentication.WebAuthenticator Google login keeps prompting for account selection every time
I have a small .net Maui app which uses Google login to access files in Google Drive.
The code I am using to get the UserCredential is as follows:
Note that the sensitive values are fake and shown ...
0
votes
1
answer
105
views
How to get user account name after Google Drive authorization?
When switching to a new authentication/authorization scheme, via CredentialManager, I had problems with getting the user account name in order to show this name to the user.
I studied all the ...
2
votes
1
answer
282
views
Google Identity Authorization (Android) : how to get refresh token?
I'm willing to add some kind of Google Drive synchronization to my (native) android app - no backend involved (everything will happen in the app).
As seen in the Google Identity documentation, I'm ...
0
votes
0
answers
54
views
Google Sign-In failure issue while accessing Google Drive
GoogleSignInOptions signInOptions =
new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
.requestEmail()
.requestScopes(new Scope(DriveScopes.DRIVE), new Scope(...
1
vote
1
answer
65
views
Why does Google Colab treat "My Drive" and "MyDrive" google drive path interchangeably?
I am using Google Colab and mounted my Google Drive with the standard command:
from google.colab import drive
drive.mount('/content/drive')
I tried writing to the following paths:
path_with_space = '/...
0
votes
1
answer
45
views
Copy Google Sheet over existing FileID
I've got a google spreadsheet used by loads of people.
Occasionally I add new features.
To do this I create a test copy, mess with it till we're all happy.
Then, I have to remember all the changes I'...
-2
votes
1
answer
78
views
Download files from Google Drive using Python and service account [closed]
I'm using a Python script to download a file from Google Drive using a specific file ID. To access the drive, I'm using an active key for a service account saved in the working directory as ...
0
votes
0
answers
59
views
How do I get Google Drive API credentials for my own use (not for a public app)?
I've written a bash script to push backup files from a server to a Google Drive account (using the open source gdrive utility). Creating the script and making it work with "test" credentials ...
0
votes
0
answers
46
views
Not getting parents field from google drive api response
I am using google drive api to get the id, name & parents field of the folder.
const response = await axios.get(`https://www.googleapis.com/drive/v3/files/${folderId}`, {
params: ...
1
vote
0
answers
36
views
How to play audio file from Google Drive using flutter audioplayers?
I am uploading recorded audio on google drive, then I am trying to play it, with formatted URI
import 'package:audioplayers/audioplayers.dart';
late AudioPlayer _player;
final modifiedUrl = 'https://...