Skip to content

Commit

Permalink
Merge pull request #72 from noogen/master
Browse files Browse the repository at this point in the history
fix visibility setting
  • Loading branch information
barryvdh authored Aug 31, 2019
2 parents a98b3ef + e178ce0 commit 5a6c893
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5a6c893

Please sign in to comment.