Setting Storage class on Amazon s3 upload (ver 3)
<p>I can't work out how to make this upload as 'reduced redundancy'</p>

<p>Iv added it in there twice, but it doesn't do anything. I think the way I have applied is useless.</p>

<p>I think i need to use this line but it seems i need to rebuild this?</p>

<p><code>setOption('StorageClass', 'REDUCED_REDUNDANCY')</code></p>

<pre><code>require_once __DIR__ .'/vendor/autoload.php';

$options = [
    'region' =&gt; $region,
    'credentials' =&gt; [
        'key' =&gt; $accessKeyId,
        'secret' =&gt; $secretKey
    ],
    'version' =&gt; '2006-03-01',
    'signature_version' =&gt; 'v4',
    'StorageClass' =&gt; 'REDUCED_REDUNDANCY',
];

$s3Client = new \Aws\S3\S3Client($options);

$uploader = new \Aws\S3\MultipartUploader($s3Client, $filename_dir , [
    'bucket' =&gt; $bucket,
    'key'    =&gt; $filename,
    'StorageClass' =&gt; 'REDUCED_REDUNDANCY',
]);

try {
    $result = $uploader-&gt;upload();
    echo "Upload complete: {$result['ObjectURL']}\n";
} catch (\Aws\Exception\MultipartUploadException $e) {
    echo $e-&gt;getMessage() . "\n";
}
</code></pre>