barryvdh / elfinder-flysystem-driver

elFinder driver for Flysystem
184 stars 41 forks source link

Google Storage issues #43

Open paulcanning opened 8 years ago

paulcanning commented 8 years ago

I am having massive problems with GCS.

I can connect to a bucket and upload files to it. I can make directories as well, but If I try to upload to a new sub folder, it fails.

If I go to my GCS console, I can see the sub folder there.

If I refresh the page with elFinder, the sub folder cannot be seen.

I think there are issues with caching maybe?

barryvdh commented 8 years ago

(Linking to https://github.com/thephpleague/flysystem/issues/656)

You can try setting the cache option to false in the driver config.

paulcanning commented 8 years ago

Setting cache to false does not help.

$opts = array(
    'roots' => array(
        array(
            'id' => 'test',
            'driver' => 'Flysystem',
            'alias' => 'CS Root',
            'URL' => 'https://storage.googleapis.com/MY_BUCKET/',
            'filesystem' => $this->googleCloud('MY_BUCKET'),
            'separator' => '/',
            'cache' => FALSE
        )
    )
);
paulcanning commented 8 years ago

Please see my latest comment on https://github.com/thephpleague/flysystem/issues/656