From e178ce002dd4a86e9b4f75ef685d79d75bd75bae Mon Sep 17 00:00:00 2001 From: noogen Date: Wed, 19 Sep 2018 16:57:45 -0500 Subject: [PATCH] fix visibility setting --- src/Driver.php | 4 ++++ 1 file changed, 4 insertions(+) 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; }