diff -u b/src/Flysystem/S3.php b/src/Flysystem/S3.php --- b/src/Flysystem/S3.php +++ b/src/Flysystem/S3.php @@ -80,7 +80,7 @@ $this->client = $client; $this->bucket = $config->get('bucket', ''); $this->prefix = $config->get('prefix', ''); - $this->isPublic = $config->get('public',FALSE); + $this->isPublic = $config->get('public', FALSE); $this->options = $config->get('options', []); $this->urlPrefix = $this->calculateUrlPrefix($config); @@ -171,7 +171,7 @@ if ($this->isPublic === FALSE) { return $this->getDownloadlUrl($uri); } - + $target = $this->getTarget($uri); if (strpos($target, 'styles/') === 0 && !file_exists($uri)) { only in patch2: unchanged: --- a/README.md +++ b/README.md @@ -59,6 +59,9 @@ $schemes = [ // 'endpoint' => 'https://api.example.com', // An alternative API endpoint // for 3rd party S3 providers. + + // 'public' => TRUE, // Set to TRUE to link to files + // using direct links. ], 'cache' => TRUE, // Creates a metadata cache to speed up lookups.