Stream

Join this community to post or comment
 
After sharing a folder in Google drive, documents contributed by members are not owned by me. Can I use a Google API to change all files in the folders to me as the ownership recursively? If yes, can share some reference where I can start on this? Can this be applied to documents created by Google Apps and uploaded files (e.g. zip, pdf and etc)
1
Roy Smith's profile photoBjorn Behrendt (EdListen)'s profile photo
2 comments
 
You need to create a service account, which the process has changed since I made this script, but if you get it working this script will work.

http://scripts.edlisten.com/transfer-ownership
Add a comment...

Alfred Smith

Discussion  - 
 
 
The usage of mobile apps is skyrocketing!

In this whitepaper, we distinguish between web apps and native mobile apps, and the shift towards mobile web.

To download our whitepaper, click here: http://bit.ly/1RTKIbW

‪#‎mobile‬ ‪#‎apps‬
1
Add a comment...

Kevin Moore

Discussion  - 
 
Getting the file id for a file created with v3 ..seems to be an issue for me .. anyone have solution (Android)
1
Kevin Moore's profile photo
2 comments
 
found it!

Add a comment...
 
Hi
I want that when i update .json file in google drive then .json in app automatically update ?
Is any one know how to code this or which functionality of drive i can use.
1
Add a comment...

Moataz Hammous

Discussion  - 
 
Hello All
when i try to download sheet with mime type: 
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
I got the following error when dealing wih this file using spreadsheet gem Invalid OLE2 Signature
1
Add a comment...

David Awad

Discussion  - 
 
I would love it if you could attach the PDF version of a google drive document (sheet with pre computed cells, doc, etc.)without having to download it yourself and attaching it.

2
Add a comment...
 
I'm writing an extension with which you can save the document automatically on Google Drive.
Tell me what you need and where to register to create a folder with the name I want???
1
Add a comment...

Troy Reiber

Discussion  - 
 
Searching through the APIs and have been stumped.

Is it possible to:
1. Change ALL of a file's (doc or sheet) content?
2. Change the revision history so one could not just open up a previous revision to get the previous content back?

In complete transparency - I am looking for a solution to fully encrypt a file so that, if a person was to get onto my account at work, they would not have access to certain secured files, even if they were logged into my account.
2
Troy Reiber's profile photoRoy Smith's profile photo
8 comments
 
The problem is that google native docs are not files as you and I would recognise them. Eg in the case of a spreadsheet, it's conceivable you could use the Spreadsheet API to fetch each cell, encrypt it and write it back, but again, fugly as hell.

Overall, I don't think encryption is the way to go for concealment native docs, but works quite well for non-native.

Have a look at whether you easily switch ownership to a secure account, maybe even a service account, or conceal the files in appdata.
Add a comment...

Roy Shelton

Discussion  - 
 
Does anyone know how to indent sub-folders in the grid view?
1
Add a comment...

Peter Zingg

Discussion  - 
 
Is there a fast, easy way to calculate the size of a user "takeout" using the Drive API?

I'm contemplating building a backup/disaster recovery system for some of the critical Google Drive accounts in my Google Apps domain. To plan for the system, I need to estimate the hard disk storage space required to back up these accounts. I found the super-easy Users Usage report API in the Reports API, that can give me a few numbers:

accounts:drive_used_quota_in_mb
accounts:used_quota_in_mb

but I'm thinking these "quota" numbers only cover the non-native documents (and might not even include pictures). There's not a lot of documentation of what these quota numbers include. The "accounts:used_quota_in_mb" seems to match what you see on your Google Drive page (on the left side), but I don't think it's what I need. What I want is to calculate the space required for an account "takeout", which would involve straight downloading all of the non-native docs as well as saving native docs in their M$-compatible formats (.docx, etc.). Do you think there's an easy API script for gathering this information, or will I have to traverse every doc using the Drive API files.list method and then "download" each one to get the downloaded file size, and finally add it all up?


2
Add a comment...

Zoltan Demant

Discussion  - 
 
I like to run into unique bugs that I rarely see people talk about, this is one of them.

http://stackoverflow.com/questions/37100463/android-google-drive-error-downloading-file
1
Add a comment...

Ali Dogar

Discussion  - 
 
i had integrated google drive in android ,i have uploaded file but unable to access it as its be default permission is private.How to change its permission to public to access these files?? Please help if anyone has solution.
1
Add a comment...

Jerry Wang

Discussion  - 
 
This desktop tool allows you to modify Google Drive file with local applications.
2
1
Jin Hu's profile photo
Add a comment...
 
How to do resumable upload using v3 API and the Python SDK?

G has an example of how to perform a resumable upload using the v2 API and the Python SDK here:

https://developers.google.com/api-client-library/python/guide/media_upload#resumable-media-chunked-upload

It works and is pretty straightforward.

However, I can't seem to move that concept forward to the v3 API.

I can create an apiclient.http.MediaFileUpload with resumable=True

If I change apiclient.files().insert() to apiclient.files().create().execute(), it just block and uploads the file directly. If I do not call execute, then what I get back does not support .next_chunk()

I know I can just drop down to the http level and do this directly, as the REST calls are all well-documented. But it would be great if I could continue to use the Python SDK.

Can anyone help me understand where I'm going wrong, or point me to a working example with the current SDK and the current drive API?

Best,
Dave J

1
Steven Bazyl's profile photoDavid Jacobowitz's profile photo
6 comments
 
Well, it seems to be working now for me on 3.5 /and/ on 2.7, so I can't say what was going on. Perhaps it was an error on my part. The issue was definitely something to do with next_chunk() throwing an exception.
Add a comment...

Moataz Hammous

Discussion  - 
 
get_file method didn't get file content
but export_file return file content ?!!!
1
Roy Smith's profile photoMoataz Hammous's profile photo
2 comments
 
but get_file in documentation said it would download sheet if you send (download_dest: StringIO.new) as i couldn't download sheet as xls from export file no mime type for xls found.
Add a comment...
 
Questions about account settings and Profile information.
1
Add a comment...

David Vielhuber

Discussion  - 
Spalten tauschen in PostgreSQL (auf der Kommandozeile oder in Laravel) April '16. Das Vertauschen von SQL-Tabellenspalten gehört bei MySQL zum Standardrepertoire – bei PostgreSQL wird dies (noch) nicht unterstützt. Zwar widmet das offizielle Wiki dem Problem einen eigenen Beitrag, ...
1
Add a comment...
 
Is this a bug in drive or am I stupid?
I recently wrote a script to clean up after the locky ransomeware and files download from the web (though not the drive desktop client) with the wrong extension. I did a

service.files().update(fileId=file_id, body={'name':oldname}, media_body=mb).execute()

to restore a preinfection revision of the file and reset its encrypted filename (locky encrypts content and filename and adds the ".locky" extension, eg "UHK7GI7UIiug6.locky").

Files now download with the correct name (say "xyz.doc") in the desktop client and show with the right name in the web but when downloading from the web they still have the ".locky" extension (eg "xyz.doc.locky").

I've checked the following fields for these files: name, fileExtension, fullFileExtension, mimeType all look correct (eg xyz.doc, doc, doc and application/msword). The only mention of "locky" is in the originalFilename field which still shows the encrypted name (eg 7658UH8UI9.locky).

Using python sdk v3

Any suggestions?
2
Roy Smith's profile photoMatthew Lovibond's profile photo
4 comments
 
Thanks I'll give it a try.
Add a comment...
 
Can anybody help?
 
Hallo zusammen!
In der Hilfe steht, dass die via Scanner erstellen pdf Dateien durchsuchbar wären. Leider scheint das nicht mehr zu funktionieren.
Oder geht es doch noch irgendwie?
Danke für eure Hilfe
 ·  Translate
1
Add a comment...