Comments (8)
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.
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.
Sadly I am unable to get any form of Cache adapter working alongside GCS :(
from flysystem-google-cloud-storage.
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.
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.
@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.
@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.
@paulcanning Thank you for your quick response. I will look for solution of this.
from flysystem-google-cloud-storage.
Related Issues (20)
- Renaming and moving Folders does not work HOT 1
- Function getOptionsFromConfig() is not working HOT 1
- undefined method: getUrl(); HOT 1
- get url from firebase storage using php
- has function does not return true for directories HOT 2
- upload fails with uniform access controls HOT 4
- ReadMe Correction for getUrl
- Supporting Flysystem 2.x HOT 4
- Getting 404 when i try to delete directory.
- File stream is dropped on writeStream() HOT 5
- Question: is it possible to set Cache-Control? HOT 1
- Authetification Issue HOT 2
- What's the status of this project? HOT 2
- Dependencies flysystem
- Could you update the library
- How to delete a dir with millions of files?
- PHP Warning thrown after asset Uploaded - stream provided gets corrupted HOT 1
- GoogleStorageAdapter::deleteDir fails to delete a directory HOT 2
- Is there a reason to explicitly set the visibility if not passed? HOT 7
- Changes to google api endpoint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flysystem-google-cloud-storage.