Stream

Join this community to post or comment
 
Hi,

I want to save file information to a database but I'm not sure about the sizes to use for the columns. (e.g. google drive file ids and such)

Are there any limits defined for the various database types?

Thanks

1
Thomas Rosenstein's profile photoSteven Bazyl's profile photo
5 comments
 
While there is no stated limit, 256 bytes is more than safe. Right now the longest IDs are, IIRC, 72 bytes. There's really no need to be that big (I'm pretty sure we'll never get to 2^72 objects in Drive any time soon :)
Add a comment...

Arjun Kaushal

Discussion  - 
 
Hi all, I need help about Google Drive. Is that possible to download file from my Google Drive at client side without any user interaction? 
1
Arthur Thompson (jr)'s profile photoArjun Kaushal's profile photo
7 comments
 
+Arthur Thompson Thanks, I have done with creating connection, but not know why I am not able to get my drive files instead getting only one file named Getting started. Is there any area where I am missing something?
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?
8
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?


3
Add a comment...

Jerry Wang

Discussion  - 
 
This desktop tool allows you to modify Google Drive file with local applications.
6
1
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

3
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  - 
 
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...
 
Questions about account settings and Profile information.
1
Add a comment...

Martyn Hancock

Discussion  - 
 
Hi, I am looking for a way to take a folder containing subfolders and files with and create a copy of it in multiple users drive accounts as an admin. The users who receive the folder will need to be the owner of it. Is this even possible? Many Thanks.
1
Gert Dekker's profile photo
 
You should have a look at the Doctopus add-on in Sheets. I think it does exactly what you ask for.
Add a comment...

Irene Reardon

Discussion  - 
 
Fast #Instagram #Likes Paves Way for Excellent Web Traffic
1
Add a comment...

Herkko Hietanen

Discussion  - 
 
How can I use the Drive API (PHP) to create a Doc which is in landscape?

I have a php-template which has a wide table which does not fit to a portrait document. I know how to manually turn the document 90 degrees, but the damage is done at that point, because I then have to manually increase the table cell widths - and who needs manual work anyways.
1
Add a comment...
 
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...

Kevin Moore

Discussion  - 
 
Getting the file id for a file created with v3 ..seems to be an issue for me .. anyone have solution (Android)
3
Kevin Moore's profile photoChristopher C. Sanders's profile photo
3 comments
 
i thinks so
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...

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.

4
Add a comment...