Commit 042e67fa authored by Joe Hoyle's avatar Joe Hoyle
Browse files

Set stream context options always

parent 2c379852
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -35,10 +35,11 @@ class S3_Uploads {
			stream_wrapper_register( 's3', 'S3_Uploads_Local_Stream_Wrapper', STREAM_IS_URL );
		} else {
			$this->s3()->registerStreamWrapper();
		}

		stream_context_set_option( stream_context_get_default(), 's3', 'seekable', true );
		stream_context_set_option( stream_context_get_default(), 's3', 'ACL', Aws\S3\Enum\CannedAcl::PUBLIC_READ );
	}
	}

	public function filter_upload_dir( $dirs ) {