diff --git a/src/Driver.php b/src/Driver.php index 16cd065..31ac150 100644 --- a/src/Driver.php +++ b/src/Driver.php @@ -531,6 +531,10 @@ protected function _save($fp, $dir, $name, $stat) $config['mimetype'] = self::$mimetypes[$ext]; } + if (isset($this->options['visibility'])) { + $config['visibility'] = $this->options['visibility']; + } + if ($this->fs->putStream($path, $fp, $config) === false) { return false; }