Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
1 answer
60 views

How do I specify a "q" parameter for www.googleapis.com/drive/v3/files

In the Google Slides API sample, it says to do a GET request: GET https://www.googleapis.com/drive/v3/files?q="mimeType=application/vnd.google-apps.presentation"&fields=files(id,name,...
-1 votes
0 answers
16 views

When changing the Parent of a "larger" Folder in Google Drive ; at 89 seconds consistently it returns 500 Internal Server Error

This seems to be a recurring problem category with various uses of the drive API, but I've yet to see one that mentions it in this way. It does not appear to matter how many files descendants there ...
3 votes
3 answers
8k views

How to fix error - Invalid argument: file.contentType, when creating new Google Sheet

I am trying to create a new Google Sheet in a created folder, but am having issues with the content Type. I have searched for this error but haven't found anything. Most searches come up with a ...
1 vote
2 answers
1k views

Setting new Drive Labels to a specific file using Google Apps Script

I want to use Google Apps Script to add a Drive Label (that already exists) to a file (that already exists). I think I'm having a hard time getting the Request Body correct. If I run my fileID and ...
6 votes
1 answer
6k views

Upload user file to google drive through django web application

I want to use Google Drive as storage for my Django project (in particular I need to store images taken by users). What I'm trying to achieve is the following: Users upload their images using a form. ...
-1 votes
0 answers
17 views

Get Storage Usage for an Individual Shared Drive using Google Workspace APIs?

We can easily view the Storage used metric for individual Shared Drives within the Google Workspace Admin Console (admin.google.com/ac/drive/manageshareddrives). However, the Drive API (v3)'s drives....
0 votes
1 answer
131 views

How to create image file on Google Drive having BinaryString or any of FileReader options [duplicate]

I'm passing data to the Google application which published on the web using Post method. Here is the code of the sever side: function doPost(e) { var params, result, responce; if(typeof e !== '...
0 votes
0 answers
24 views

Why does Google Drive API drive.file scope fail to copy external file but work with drive scope?

I'm building an application where new users (who are external to my Google Workspace domain) need a personal copy of a single Google Docs file (a template I've created). The file is shared as "...
0 votes
0 answers
44 views

Google Drive integration with Angular app gives 403

I have tried to use this component <drive-picker client-id="clientId" oauth-token="userAccessToken"> <drive-picker-docs-view starred="true"></drive-...
1 vote
3 answers
12k views

Access Not Configured. The API (Drive API) is not enabled for your project. Please use the Google Developers Console to update your configuration

I got a bit of a problem. i created a googlesheet and included a script, like this, to send it as a pdf to my email address: function onOpen() { var ui = SpreadsheetApp.getUi(); // Or ...
17 votes
2 answers
4k views

File Picker for Google Drive Rest API for Android

While the Google Drive Android API, an API separate from the Google Drive Rest API, does contain a file picker, the Google Drive Android API is not integrated with all the features of the Google Drive ...
19 votes
5 answers
44k views

Script to automatically make a copy of a Google Document for editing

I feel like a total noob posting here. I know CSS, HTML, and XML pretty well but have always avoided JS. I know very little javascript and recently started a Lynda.com course to catch up. Sorry for ...
2 votes
2 answers
9k views

How to download and save in local directory from Google drive selected file in Android programmatically?

I am using Google Drive API in my application, I am able to pick(.doc/docx/.pdf in my case) file from google drive, till now everything is fine. But I want to download the selected file and need to ...
11 votes
5 answers
16k views

How to fix the storage exceeded issue for Google Drive when uploading using Service Accounts

If you're using Google Apps for Work (also called G-Suite) and uploading files to your Google Drive via the Drive API you'll eventually find yourself with an error message that looks like this: Error:...
40 votes
6 answers
54k views

Upload to Google Drive without any UI?

I am looking to write a server application to upload files to Google Drive. I was previously using the Documents List API, but I see that is deprecated. I'd like to move to the Google Drive API, but ...
1 vote
1 answer
62 views

How to test a Google Drive add-on?

I have written a simple add-on using google apps script, and "deployed" it as "Add On". But whatever I do, I cannot figure out how to connect that add on to my drive account so I ...
-1 votes
1 answer
450 views

Save selection to a Google Sheets spreadsheet in PDF

Sheets screenshot Another Sheets screenshot PDF screenshot This is my first question. I am learning about Scripts and adapting some spreadsheets of my service in Google Sheets. Help: I have a ...
1 vote
0 answers
58 views

OAuth 2.0 error for Google Drive 127.0.0.1 refused to connect

I have a C# application linked to Google Drive to upload and download files. The application is working for most of the cases. But it showed an error when I ran the application on one new PC recently. ...
1 vote
2 answers
175 views

flutter can't open launch Url google drive

when i call launchUrl (url_launcher 6.2.2) it's not working or outstanding. I want to open goole drive with link. final Uri url = Uri.parse("googel drive link share all people have"); ...
0 votes
0 answers
118 views

Accessing all files in Google Drive using Google Picker with drive.files scope

Goal Let users create files in my web app and save them to Google Drive. Let users use Google Picker to select any file they own or that’s shared with them. After selection, let my app download or ...
0 votes
0 answers
684 views

Upload file using Google Apps Script and html [duplicate]

I cannot open the uploaded file and I strictly follow Google Guide's instruction: Google Guide which are under Basic interact.gs function doGet() { return HtmlService.createHtmlOutputFromFile('...
21 votes
12 answers
58k views

Disabling the large file notification from google drive

While downloading zip file(more than 25MB i assume) i am getting the below notification, Sorry, we are unable to scan this file for viruses. The file exceeds the maximum size that we scan. Download ...
1 vote
1 answer
112 views

How do I filter the Google Picker to show only files created by drive.file scope?

I have an app where users (using the drive.file Oath scope) can create a new Sheet. I want to display the Google Picker to display the Sheets they've created with my app BUT the Picker is showing ALL ...
0 votes
1 answer
111 views

Adding a file attachment from Google Drive to an email

This is the code I used (found online, not my own), but I can't figure out how to add an attachment to this code. function sendEmails() { // Load the spreadsheet data const sheet = SpreadsheetApp....
2 votes
1 answer
9k views

How to use google drive file list api with drive API Key without oAuth2.0?

How we can use google drive list file API "GET https://www.googleapis.com/drive/v3/files" using google drive API key and without using Google OAuth2.0
1 vote
2 answers
10k views

How can I get a list of all shared files on my google drive using one google drive sdk query?

In my iOS app, when I execute "queryForFilesList" with q="" I get a list of all files and folders on my Google Drive plus shared root folders, but not the files in the shared root folders. If I use ...
4 votes
1 answer
6k views

Getting an error while Download Files using Drive API

I am trying to pass the Google Spreadsheet ID (Where the file is in Google Drive with Every one view option) to the Google Drive Export API and download the file to local directory. As I need to ...
26 votes
10 answers
66k views

How to Create a Spreadsheet in a particular folder via App Script

Can anybody help me out, I want to create a Spreadsheet through App Script in a particular folder. How to do that. Presently I am doing as follow: var folder = DocsList.getFolder("MyFolder"); var ...
0 votes
0 answers
114 views

Get comments of a google spreadsheet by sheet

I use this script to get all the spreadsheets of my drive that have comments function getMatchingFiles_(query, folderId) { folder = folderId ? DriveApp.getFolderById(folderId) : DriveApp; ...
2 votes
1 answer
263 views

Installing Python Libraries to Google Drive in Colab is extremely slow or re-installing

screenshot of installation colab link its been 25 minutes it is still installing the lib I'm trying to optimize my Google Colab workflow by installing Python libraries directly to my Google Drive ...
0 votes
0 answers
58 views

rclone can't write to a folder shared-with-me using a GCP service_account and google-drive-api

Overall goal: I'm trying to get a service-account script to write to our company's Google Drive. Currently trying to use rclone for writing files. Working backwards I got rclone working when logged in ...
0 votes
0 answers
93 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 ...
3 votes
3 answers
5k views

Create a Google Doc in a Specific Folder [duplicate]

I am trying to create a google doc in a specific folder held in the variable chapterOne. I've googled and googled and the closest I've found to an answer is this code here: function Test() { ...
1 vote
1 answer
3k views

google drive API failed and returned "HttpError 403: Service Accounts do not have storage quota" [closed]

dear all: I am using google drive service account (as an editor) to share some files via google drive API. Everything worked fine. Then after one day, google drive returned error message 403 and said ...
-3 votes
1 answer
2k views

Google Drive Api Service Accounts do not have storage quota. Leverage shared drives, or use OAuth delegation instead [closed]

Description: I'm trying to upload files to a shared folder in Google Drive using the Google Drive API with Node.js and a service account. My scenario: The shared folder belongs to a personal Google ...
1 vote
1 answer
149 views

Google Drive API OAuth authentication for server-side app

I'm trying to upload some CSV files up to a google drive via a .Net web app. My first attempt doing this using a service account ended up a failure. My second attempt using OAuth for authentication ...
-1 votes
3 answers
1k views

Nodejs - Unable to fetch data of files from google drive

I am trying to fetch data of a file from google drive. For which I have done all the steps mentioned in https://developers.google.com/drive/api/v3/quickstart/nodejs Also I am able to get the list of ...
0 votes
0 answers
137 views

How to create a Google Spreadsheet document using a service account?

I am building a script which is supposed to create and update documents in a certain folder of my Google Drive (personal account, not Google Workspace). If there is no document that particular name, ...
1 vote
1 answer
697 views

Error : DocumentApp is not defined in google docs

I am creating a web-application in which I want to integrate Google Docs using Google Drive. I have made it. Now my next task it append some data to that opened google doc using Drive API. So I want ...
0 votes
1 answer
130 views

Insert Image to Google Sheets Menu

I created a new submenu on the toolbar. I want to have several drop down items each with their own assigned image so that when someone clicks their name an associated image from the Drive ...
0 votes
2 answers
17k views

Get email address of shared users in Google Drive SDK

Because of the simply mind boggling lack of a notify feature in Google drive that notifies people of new files being added to their shared folders, i'm forced to write one. My first version of this ...
1 vote
0 answers
77 views

Alternative to time trigger in google scripts

I am creating a visual folder tree of my google drive in a spreadsheet (google sheets). However due to the size of the drive and using a BFS algorithm, I have to stop the script at a certain runtime ...
2 votes
0 answers
95 views

How to implement multi-selection picker using Card Service in Google Drive Add-on

Have implemented the text box input with suggestion parameters but once an option is selected, the suggestions do not appear again for more options to select. var textInputStyle = CardService....
2 votes
0 answers
430 views

Maximum doPost()/ajax data Size

I've been creating Drive files for a while now with Published Pages and Apps Script, but now has arrived a demand to create them from an external link, and I've created a Snippet to get base64 data ...
1 vote
1 answer
178 views

Adding a drive doc to an existing AppScript email as an attachment

I have been working on a code for days now, and it's working fine. I am now on the final leg and wish to add another attachment from the drive with a docID. Below is my current code that works fine ...
0 votes
1 answer
187 views

Adding Google Drive Files as Attachments to Previously Created Draft in Google Apps Script

I am currently working on an Apps Script project where I need to add two Google Drive files as attachments to an existing Gmail draft without modifying other parts of the draft, such as its subject or ...
-1 votes
1 answer
498 views

Is there a way to use a video on Google Drive as a source in a video element in HTML?

So is there a way to add the link here: <video controls> <source src="GOOGLE DRIVE LINK HERE" type='video/mp4'> </video> I tried adding the ID, but this doesn't work... ...
2 votes
0 answers
9k views

How to generate lh6.googleusercontent.com/[LONG_CODE], image url of a drive image, using it's doc id

So I'm trying to obtain a direct display url to images in a drive, using their document id's, like the url's that end in ".jpeg" and such, that only display the image, then use this link within my ...
9 votes
0 answers
992 views

Google Drive Revisions not returning all revisions for a Google Sheet

I am trying to write a script for analyzing changes to a Google Sheets document. When I look at the version history inside of Google Sheets I see what appears to be a complete history of the document ...

1
2 3 4 5
321