/** * Override getOptions() to default all files to be publicly readable. * * @return array */ public function getOptions() { if (!isset($this->uri)) { throw new \LogicException('A URI must be set before calling getOptions().'); } $options = parent::getOptions(); $options['ACL'] = 'public-read'; if ($this->useRrs()) { $options['StorageClass'] = 'REDUCED_REDUNDANCY'; } return $options; }