Giter Club home page Giter Club logo

Comments (8)

matthewgoslett avatar matthewgoslett commented on May 28, 2024

I'd recommend using the CachedAdapter from Flysystem on top of our adapter. We don't control the latency or speed between the adapter and Google Storage. We use the https://github.com/google/google-api-php-client package underneath the hood.

We haven't had any slowness issues from production to Google Storage but it is sluggish from our office, so it's completely dependent on where you're accessing the bucket from.

from flysystem-google-cloud-storage.

matthewgoslett avatar matthewgoslett commented on May 28, 2024

I just saw the issue title now. It sounds like this is an elFinder related issue and they don't depend on our package.
Thanks

from flysystem-google-cloud-storage.

paulcanning avatar paulcanning commented on May 28, 2024

Sadly I am unable to get any form of Cache adapter working alongside GCS :(

from flysystem-google-cloud-storage.

matthewgoslett avatar matthewgoslett commented on May 28, 2024

Here is some sample code:

$credentials = new \Google_Auth_AssertionCredentials(
    '[your service account]',
    [\Google_Service_Storage::DEVSTORAGE_FULL_CONTROL],
    file_get_contents('[[path to the p12 key file]]'),
    '[[your secret]]'
);

$client = new \Google_Client();
$client->setAssertionCredentials($credentials);
$client->setDeveloperKey('[[your developer key]]');

$service = new \Google_Service_Storage($client);

$adapter = new GoogleStorageAdapter($service, '[[your bucket name]]')

$store = new \League\Flysystem\Cached\Storage\Memory();
$cachedAdapter = new \League\Flysystem\Cached\CachedAdapter($adapter, $store);

$filesystem = new Filesystem($cachedAdapter);

from flysystem-google-cloud-storage.

paulcanning avatar paulcanning commented on May 28, 2024

I'm getting the error

error: "Error calling GET https://www.googleapis.com/storage/v1/b/rss/o/company?key=63ab887625ec1adb89974b0721ec422ac13ae0b5: (404) Not Found"
sync:true

from flysystem-google-cloud-storage.

devDev1922 avatar devDev1922 commented on May 28, 2024

@paulcanning I am having an issue somehow similar to your one. You was facing issue to load the google cloud folders, but I am having an issue in rename, copy, move operations. I posted my query here. Did you find any solution for your issue??

Many Thanks!

from flysystem-google-cloud-storage.

paulcanning avatar paulcanning commented on May 28, 2024

@devDev1922 christ, this was 5 years ago. I honestly cannot remember how I fixed it, if I ever did. The project was in a usable state, using GCS as the storage medium, so I suspect I either got it working, or found a work around. I know that doesn't help much.

from flysystem-google-cloud-storage.

devDev1922 avatar devDev1922 commented on May 28, 2024

@paulcanning Thank you for your quick response. I will look for solution of this.

from flysystem-google-cloud-storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.