diff --git a/src/FileStoreAdapter.php b/src/FileStoreAdapter.php index fa8a69e..fe25226 100644 --- a/src/FileStoreAdapter.php +++ b/src/FileStoreAdapter.php @@ -407,6 +407,11 @@ public function write($path, $contents, \League\Flysystem\Config $config) public function writeStream($path, $resource, \League\Flysystem\Config $config) { $meta = $this->write($path, $resource, $config); + + if($meta === false) { + return false; + } + $meta['stream'] = $resource; return $meta; }