Stream

Join this community to post or comment
Pinned by moderator

Eric Koleda
moderator

Announcements  - 
 
This is not the community you're looking for

If you have questions or comments about using Google Drive the product, then you want to do to the Google Docs and Drive community linked below. This community is intended for software developers that use the Drive SDK and APIs. 
Google Docs and Drive
The largest unofficial community for discussion of Google Docs and Drive.
View community
96
24
Spkron Spkroff's profile photoShiven Dave's profile photoสายฝน เวียงอินทร์'s profile photoSagar Vasule's profile photo
8 comments
 
May sony sp xperia doest not google system.. Thats why im not create my google application.. 
Add a comment...

Ivan Kuckir

Discussion  - 
 
Hi, I am a programmer developing a free online photo editor http://www.Photopea.com . I have added support for Google Drive (Drive API) to reach more users.

When I right-click a PSD file (from Adobe Photoshop) in my Drive, there is an option Open With ... Pixlr Editor, CloudConvert, Driveconverter ... I have none of those apps installed.

Can I make Google Drive suggest my app Photopea as the default app for PSD to other users? I think it has much better support for PSD than Pixlr, and it does not require Flash Player.

Now, it seems, that Pixlr suggestion is "hardcoded" into Drive for all image formats. Am I right?
7
Ivan Kuckir's profile photoAlexander Ivanov's profile photo
8 comments
 
+Ivan Kuckir you have to meet with Marketing and Publicity Guidelines for Google Drive Apps https://developers.google.com/drive/v3/web/marketing#press_releases_and_media
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...

Felix Kollmar

Tips & Tricks  - 
 
Hey, we’ve just released a free Android library which provides you with an unified API to integrate e.g. Dropbox, Google Drive, OneDrive and Box in your App. Could that be helpful for you? We’d love to get your thoughts on it. You can get it from GitHub: https://github.com/CloudRail/cloudrail-si-android-sdk
cloudrail-si-android-sdk - Provides a repository for the CloudRail SI Android SDK
2
1
Abak Hoben's profile photo
Add a comment...

Mike H

Feature Requests  - 
 
add a notification to the drive api when a user has closed the file. So a background task can fetch the newest version of the file 
1
Eric Koleda's profile photoMike H's profile photo
4 comments
Mike H
 
Thanks Eric 
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

2
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...
 
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  - 
 
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...

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
2
Add a comment...

Troy Austian

Feature Requests  - 
 
A valuable new feature for Google Drive would be the ability to send upload (file request) links. Some competing products such as Dropbox have this feature, which allows you to send a link that allows recipients to simply upload files to a private folder in Google Drive that only the owner who sent the link has access to (unless the owner intentionally shares that folder).
5
Add a comment...

About this community

Official Google Drive SDK community. Join to meet other developers using the Google Drive SDK, share tips & tricks, or just keep up to date on the latest news about Google Drive.
 
Hi, I'm currently working google drive php cli with v3. I'm having problem retrieving the file->size and other file methods of a file list. I can only retrieve the file->name and file->id. Anyone have an idea why other methods was null?
1
Roy Smith's profile photo
 
Check that size is one of the properties you have requested in your GET. Also be aware that native Google file types don't have a size.
Add a 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...

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...

Jerry Wang

Discussion  - 
 
This desktop tool allows you to modify Google Drive file with local applications.
5
1
Jin Hu's profile photo
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)
2
Kevin Moore's profile photo
2 comments
 
found it!

Add a comment...

Dave Paolicelli

Feature Requests  - 
 
Hello. Has anyone in this group ever used a Google Sheet as an administrative mechanism for modifying and extending Google Drive (folder/file locations) by any chance?

What I'm looking to do is introduce some metadata to Drive folders that doesn't otherwise exist (e.g., keyword tags; extended descriptions, etc) and be able to manipulate the structure of a corporate shared Drive hierarchy.

Ideally, I'd want to expose some of that Google Drive/Sheet metadata or content in a Google Site. This site would be the basis for a rudimentary "knowledge base" type solution where staff could traverse the folder structure via site pages that are either structural (same as the folder hierarchy) or by topic/keyword (which may be different than the folder hierarchy and could include multiple Drive assets such as files and folders). The pages would have content about the folder (what is it, like in the Drive description field) but could be extended well beyond.

So, I guess I'm looking for input from anyone who's done something similar (esp the Sheets-to-Drive-Sheets integration) or knows of an available solution for implementing this - whether in full or in part.

Thanks.
1
Dave Paolicelli's profile photoAlexander Dolgunin's profile photo
5 comments
 
Hi Dave,

we are thinking about using Google Drive as attachment storage for our blog/webforum/wiki hybrid software hosted in GAE. The idea is that artifacts will be stored as entities in the Google Datastore with all metadata we need; some of those artifacts will link to Google Drive folders or files IDs.

We haven't thought through the Search aspect yet - probably a separate Solr app with its own DB will be used to index those artifacts/Drive file contents.
Add a comment...

Liran Barsisa

Feature Requests  - 
 
Suggestions/requests about the Android API for Google Drive:

1. Add ability to sync a DB of all Metadata objects that can be retained from a specific folder. This can help in various operations without the need to actually query with the Drive service, reducing Internet usage, and also handle things when there is no Internet.

2. Allow to add a customized Filter. Currently all filters that we can use are from "Filters" class. One possible customized filter is to do some customized checking in the description field within the Metadata of each file.
Trying to use "new Filter" will have a weird function within: "public <T> T zza(final zzf<T> zzf)"

3. Allow to get a direct URL for each file. Currently, if I've uploaded an audio file (3gp in my case) to Google Drive, I have to first download it before I can play it, as there is only InputStream available, and the URLs that the metadata provides aren't pointing directly to the file URL.

4. Add ability to choose what to do with the private files of the app in Google Drive, when Play Services find out that the app is not installed in any of the user's devices. Maybe add a countdown for each file&folder, that if the user hasn't reached the file/folder for X days (and also doesn't have the app), delete them.
This can help with junk files, that stay after the app is uninstalled.
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.

3
Add a comment...

Troy Austian

Feature Requests  - 
 
The Google Drive web interface could use an option to see all of your shared content listed together in the same way you have the option to see all that is shared with you.
1
Add a comment...