Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jbrown’s picture

Great idea!

Rosamunda’s picture

+1

jbrown’s picture

Is there a PHP library?

rodych’s picture

mr.moses’s picture

Anonymous’s picture

@mr.moses -- Google Cloud Storage would be great, BUT there is no feedback it seems from the developer, it's still in beta, and there's very few sites reporting usage. Not to mention it doesn't seem to work at all, or at least nobody seems to be able to show it as working on a site.

I'm going to be working on adding Google Cloud Storage as an additional service using the PHP class. If I get something working, then I'll definitely post back here.

IF ANYONE has already started working on the above using the google storage class for this module, then PLEASE post progress here. Thanks!

Anonymous’s picture

Shameless bump... ANYone worked on this? I'm starting now. I got pulled into multiple other website projects so this had been pushed back multiple times....

emmonsaz’s picture

Shameless bump #2 ... any progress?

Perignon’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

If this is still valid, let me know and reopen this issue.

shandman’s picture

Status: Closed (won't fix) » Active

Definitely interested in this, we are testing GAE now that it has PHP support and would definitely love to implement with the same storage api functionality that we have now. Especially as Google's Cloud Storage Bucket offers a 5 GB free tier in perpetuity unlike Amazon S3 where the free tier is only for 12 months.

Perignon’s picture

Always welcome patches!

kaa4ever’s picture

I've created a patch with basic support for Google Cloud Storage.

Wanting a more dynamic setup at my work, we decided to use Google to store files and DB. I couldn't really get any other modules to work 100%, so i decided to create this patch, 'cause storage API seems nice :-)
The patch is very basic, but is in production, and we havn't had any issues. Then again - we are not having that many user/admin generated files.

Perignon’s picture

Awesome! Thanks for the patch. I will get it worked in.

  • Perignon committed 0877cbc on authored by kaa4ever
    Issue #1170110 by kaa4ever, retrakker: Support for Google Storage
    
Perignon’s picture

Committed to dev!

Get some eyeballs on it then we can get to RTBC.

kaa4ever’s picture

I've patched the library hook, to not require any specific version of the library.
When trying to update the Google Storage container, it kept saying wrong library version. Doing the same trick (version => whatever) as the php-cloudfiles library fixed the issue.

  • Perignon committed 5e8fc9f on 7.x-1.x authored by kaa4ever
    Issue #1170110 by kaa4ever: Support for Google Storage
    
Perignon’s picture

Committed!

Thanks for following up and the patch/fix. We rely a lot on other people for certain storage services.

shawnrosspeters’s picture

So does the dev version have support for Google Cloud storage per #17?
https://www.drupal.org/node/1170110#comment-10864340

Perignon’s picture

Yes

Perignon’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Perignon’s picture

Quick update for followers.

Google has changed their API that requires updates to Storage API service for Google.

I am in the process of doing this.

See:
#2700249: Google Cloud Services no longer uses Google_Auth_AssertionCredentials() uses Google_Client::setAuthConfig instead
This is to eliminate the reliance upon Libraries module:
#2700007: Google Cloud Storage should load API with libraries or another method