Questions tagged [google-drive-api]

Questions related to integration with Google's cloud storage service or interacting with Google Drive files programmatically, via the Google Drive API, Google Drive SDK, or Google Apps Script. Usage questions about the web application should be posted at Web Applications Stack Exchange.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
13 views

How to link google photos and google drive? [closed]

I'm changing my cell phone and I wouldn't want to waste any of the memory on my new cell phone with photos and videos from my old cell phone. Is there any way to link Google Photos with Google Drive ...
Projetos Programação's user avatar
-4 votes
0 answers
20 views

Automate Google Ads Billing Documents Transfer to Google Drive. Need Suggestion's [closed]

I’m not a programmer, but I’m trying to streamline a specific task—automatically moving my Google Ads PDF billing documents to Google Drive or gmail. Here’s what I’ve tried so far: 1. Selenium IDE: ...
Auren Lopez's user avatar
0 votes
0 answers
27 views

Applying Metadata to Files/Folders in google Drive

I have been struggling to be able to append any metadata to a file in my Google Drive. Ideally, I want to append some specific metadata to a file through Google Apps Script. I have only been able to ...
Ryan Fleury's user avatar
0 votes
0 answers
21 views

Google Drive API V3: 404 file not found error on download or export the shared PDF

I'm using Google Drive API V3 with PHP and trying to download or export the file which is shared with me by other person. But getting 404 File Not Found error. Google\Service\Exception: { "error&...
CodeBriefly's user avatar
  • 1,000
-1 votes
0 answers
17 views

Can I use the members of a shared Google Drive as the criteria range for a dropdown? [closed]

My workplace uses a shared Google Drive to collaborate, and we use a Sheet to track employee progress at each site. Each row of the sheet must be checked of by a manager then they select their name ...
Aiden McCurley's user avatar
1 vote
0 answers
45 views

Revert all files in a Google Drive directory to old version after ransomware attack

After a crypto virus attack all files on my PC and my Google Drive were encrypted. Thanks to Google Drive (I'm a Google Workspace user) is it possible to restore a previous version of each file, ...
Antonio's user avatar
  • 11
0 votes
1 answer
44 views

Adding copy file to Google App Script code

I get this code from other answer from StackOverflow to show all folders from RootFolder without timeout error. It works very well !. I must run to loop on all folders and subfolders. Its great Now I ...
OmarPoch's user avatar
0 votes
0 answers
24 views

Why do Refresh Token expires after every 7 days ? Does it affects the file upload on production

I implemented a Laravel web-app with Google Drive's API used for storage. I used this tutorial https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011. When i am trying to upload file on ...
Reshma Gawade's user avatar
-1 votes
1 answer
41 views

why is this code not getting the values from the cells i want it to? [closed]

I'm trying to get some values from a Google Spreadsheet and overwrite them into a Google Docs template to create custom files, but i think there's a problem with the method .getcurrentcell instead of ...
Juan Manuel Betancourt's user avatar
-1 votes
0 answers
32 views

Error when Running Python Script as an EXE: "An error occurred while loading files from Google Drive"

I'm encountering errors when running a Python script that downloads image files and an executable (exe) file from Google Drive using the PyDrive library. The script functions correctly when executed ...
Young Python Programmer's user avatar
0 votes
1 answer
29 views

GCP - Apply IAM role to Service account to prevent deletion of files

I have a GCP Service account for a project that uses the Google Sheets and Google Drive API. The service account can currently create files, move them, update them, delete them, etc. But I want to ...
Debaser231's user avatar
0 votes
0 answers
12 views

Google Drive is not access able in RELEASE apk android application?

I am trying to accessing Google Drive from my own android application. I am stuck in a situation that my app is working perfectly in DEBUG APK but not working in RELEASE APK. Google drive is access ...
Hassan Yaseen 203's user avatar
1 vote
0 answers
22 views

Discrepancies in data unzipping via Google Colab

I have been using Google Drive and Colab for the past few years and never faced any issues while unzipping files via Colab into Drive. But its been a second day I am facing errors while unzipping ...
Qysr's user avatar
  • 11
0 votes
0 answers
25 views

Extract the paragraph from a PDF that contain a keyword in google drive

I have a google drive containing 12,652 pdf files where I want to extract the paragraph that contain a particular keyword from these files. How can I proceed to extract paragrapgh from this files and ...
Aravind Ashokkumar's user avatar
-2 votes
0 answers
29 views

Automating Video Transfer from Google Drive to Firebase Cloud Storage with Cloud Functions and Node.js [closed]

I'm a software developer working with Node.js, and I'm currently working on a project where users upload videos to a shared Google Drive folder. These videos could be quite large in size (around 1GB-...
Mohammed Marjan's user avatar
0 votes
0 answers
39 views

How i can change the font color of a specfic placholder/text of a document using google drive api?

I am trying to change the font color using Google Drive API. I tried different approaches but they didn't work. I also try to change color of variable value before replacing but this also not work. ...
Abdullah Shahab's user avatar
0 votes
1 answer
15 views

How to move a file between folders on google shared drives

I wrote the following function to move a file between folders in the Google shared drives. It works normally, without any error, but the file is not moved. How can I do? public function ...
Ampopo's user avatar
  • 13
0 votes
0 answers
22 views

How to overwriting a file on google shared drives

I wrote the following function to check if a folder exists in Google shared drives. . How can I do? public function DeleteFileFromDrive($access_token, $file_id) { $apiURL = self::...
Ampopo's user avatar
  • 13
1 vote
1 answer
37 views

Inserting images into a Google Sheet using Google Apps Script

I've been having issues with inserting images from Google Drive into a Google sheet using google scripts. Sometimes it works perfectly but sometimes it throughs error - Exception: The blob was too ...
Aman's user avatar
  • 11
0 votes
0 answers
20 views

How can I use Google APIs in Python to move a file from one user's Google Drive folder to another user's folder?

I'm trying to write a Python script that allows me to move a file from a folder in my Google Drive to a folder in another user's Google Drive using Google APIs. I've already set up OAuth2 ...
CHIRAQA's user avatar
  • 33
1 vote
1 answer
22 views

How to verify if a folder exists in google shared drives

I wrote the following function to check if a folder exists in Google Drive. It works normally but if the folder is in shared drives it doesn't work. How can I do? public function ...
Ampopo's user avatar
  • 13
1 vote
1 answer
28 views

Google Drive API problem connecting with NodeJS

I am trying to create a gallery page in my NodeJS app. However, there it seems like something isn't working with the connection. The idea is to get all photos from a Google Drive folder that is public....
Kristiyan's user avatar
0 votes
0 answers
37 views

Upload a file to Google Drive and VB.net : nullReferenceException error

I'm trying to learn to upload a file to Google Drive with a simply software created with VB.net but I have some errors.. when I push Button1 I receive this error: "System.NullReferenceException: ...
Marco Giglio's user avatar
0 votes
0 answers
38 views

Missing Files and Folders in Google Drive API [duplicate]

I'm having issues with using Google Drive's API and I am wondering if I am using the API with credentials properly. I'm using a credentials.json file to upload into My Drive and not a Shared Drive. ...
cheaseeds's user avatar
-1 votes
0 answers
20 views

Download images to system with google api [closed]

I am having some trouble downloading data from google drive api using nodejs. I tried many methods but none of them seem to be working. This is the code const download_images_test = async (file) => ...
John Tharian's user avatar
0 votes
1 answer
22 views

Converting excel file to google sheet using Appscript keeps throwing Drive API Error "File Not Found"

I am working on an appscript that downloads an excel attachment from my inbox into folder A, then converts it into a google sheet and is saved in the same folder A. I have used the guidance of a ...
projadm's user avatar
0 votes
1 answer
80 views

How to increase 100 user cap for OAuth to Google API

My Google project is verified but the user cap displays 100/100. Google documentation says that OAuth user quotas "might be adjusted for specific apps based on the app history, developer ...
Artem Ilyumzhinov's user avatar
-2 votes
1 answer
22 views

google drive php libarary issue

i am creating folder inside google drive with php google drive library, currently i am settings its permission to anyone, which is not that i need i want only person who is owner of that drive who ...
Ali's user avatar
  • 1
0 votes
0 answers
24 views

uploadFile() sending empty or corrupted files to Google Drive API - React Native

I'm using Google's V3 Drive API on React Native to create a resumable request for large file creation. When I use react-native-fs's uploadFile(), it's creating images on my GDrive that are of 0 bytes (...
Andres Mejia's user avatar
-1 votes
0 answers
33 views

Is it possible using Google Drive API to list all files containing specific classification labels using Google apps script?

Documentation is lacking for apps script, chatGPT's knowledge does not includes the Google Drive labels feature and Google support is useless. I'm trying to achieve a script on Google Apps Script that ...
Julien's user avatar
  • 1
-1 votes
0 answers
37 views

Google Drive API - Get, edit, and upload files

Ultimate goal: Get 3 specific files (serving as templates) located in Google drive, edit them in my IDE as python objects, and then reupload them as new files to a new, specified location in G Drive. ...
user18349414's user avatar
0 votes
0 answers
9 views

Google Disk blocking file transfer [duplicate]

I am trying to resolve an issue that has been bothering me for weeks now. We have a website project that we have taken over from other company. The website displays clients short pornographic videos. ...
Josef antos's user avatar
0 votes
1 answer
71 views

How to restore (untrash) file with Google Drive V3?

I'm using C# Google Drive V3 Api. I need to restore some files from trash. I'm able to find programmatically the trashed files, but I cannot find any Untrash or Restore or similar methods. The only ...
theateist's user avatar
  • 13.9k
0 votes
0 answers
34 views

Shared drive activity not sending notification

The troubles with receiving notifications about changes being made on specified shared drive by users other than me. Steps: First i'm getting new startPageToken: https://www.googleapis.com/drive/v3/...
P.Zaw's user avatar
  • 43
0 votes
0 answers
29 views

php img echo from another file, google drive api

I have a file, g.php, which uses Google Drive API and gets image url successfully. I have a file test_image.php file: require_once ("g/g.php"); // work fine i get image url $li_i=vi("my ...
ambako's user avatar
  • 11
0 votes
0 answers
13 views

Authenticator Presenter not showing up and Logging in

I'm using a sample Google Drive API snippet to connect to Google Drive and upload files using this repo https://github.com/stevenchang0529/XamarinGoogleDriveRest/blob/master/XamarinGoogleDriveRest/...
cheaseeds's user avatar
0 votes
0 answers
43 views

Google API - "Active session is invalid. Error code: 4"

I am trying to access the Google Drive API through Oauth2 and have encountered an error that does not yield any results when searching. Here is my code. require "oauth2" require "google/...
stellard's user avatar
  • 5,162
1 vote
1 answer
43 views

How to Temporarily Make a Google Drive File Public Using Google Drive API?

I'm working on a project where I need to make a Google Drive file temporarily public for download and then make it private again. I'm using the Google Drive API in PHP. Here's the code I'm currently ...
Arthur Brenno's user avatar
0 votes
0 answers
17 views

"How can I create a subfolder for Google Form images using a Python script in Google Drive?"

The images uploaded to the Google Form are placed in a folder on Google Drive. I would like a Python code that separates these images into separate subfolders for each submitted form. Optionally, the ...
Mester Bob's user avatar
0 votes
1 answer
31 views

Change shared drive settings by Drive.Drives.update

We use Google Drive and are working on a tool to automatically create shared drives. However, Drive.Drives.update is not working properly. I would like to apply shared drive settings, but nothing ...
大学 情報担当's user avatar
-1 votes
0 answers
25 views

How to makecopy() go into different destinations according to row/cell?

I'm trying to figure out how to create each file into a different folder according to what is entered into the row/cell. Is there a way to do this? Here is my script, where all files go into the same ...
J Jackson's user avatar
-1 votes
0 answers
40 views

Others have issues using/accessing my Google Web App site - seems mainly due to images on Google Drive

I built a database type site using Google Sheets, Drive & App Script and deploy it as the web app and then place that URL on my own personal site. The images are stored on my Google Drive using ...
Michael's user avatar
  • 31
0 votes
1 answer
22 views

How can I use google drive api to find by whom a file was shared

I know I can use the file permissions to see with who a file was shared with, but how can use the api to find who was the user that shared the file?
eladm26's user avatar
  • 529
0 votes
0 answers
17 views

401 Unauthorized error when using a server account to impersonate a user in order to access their Google Drive files

I have created a service account in the Google cloud console and generated the credentials.json file to be placed in my Java project. Then, in the Google workspace admin console, I clicked on MANAGE ...
wolong11's user avatar
0 votes
0 answers
36 views

shareOutWarning when deleting a file as service account user in shared drive

Some background, we have an application and it uses a service account to manage files in Google Drive. For some reason the service account can't trash or delete files anymore. It was able to do that ...
enveri's user avatar
  • 1
2 votes
1 answer
28 views

Set Timeout error while merging multiple pdfs into one using Google Apps Script

I have a script that is supposedly used for merging multiple pdf files into one using Google Apps Script, here is the code snippet: async function newMain() { // Retrieve PDF data. const sheet = ...
EagleEye's user avatar
  • 264
-1 votes
2 answers
28 views

How do I create a google appscript which copies an existing Google Doc then replaces certain text?

Based on the code below I was expecting the AppScript to copy my document, then replace all instances of {{resultID}} with 12345. I am getting an error. function generateReport() { var doc = ...
Zach MacKenzie's user avatar
0 votes
1 answer
39 views

Apps from Google Play Store can access Google Drive and create configuration files, how do I view them?

Google Play store (i.e. Android) apps can be granted access to view, edit and delete app specific files in my personal Google Drive. Without using API and without using the Google Play app, if I am ...
StackEng2010's user avatar
-1 votes
0 answers
17 views

how to import a windows excel file to GDrive using Apps Script from GSheets

how to import a windows excel file to GDrive using Apps Script from GSheets I need to import a excel file to G Drive. from G Sheets using Apps Script. Any Help is welcome, Thanks!' I tried this code : ...
GSerraG's user avatar
-1 votes
0 answers
33 views

Gmail to drive script was working, now it's not

This code worked a dozen times yesterday, so I set it up on a time trigger and now it wont work at all. The only thing that I can see has changed is parentFolder.addFile(file), and root.removeFile(...
Josh Moseler's user avatar

1
2 3 4 5
296