79725068

Date: 2025-08-04 14:47:56
Score: 1
Natty:
Report link
The answer was doing like this:

        $uploader = new MultipartUploader($s3, $file, [
                'bucket' => $bucket,
                'key'    => $key,
                'before_initiate' => function(\Aws\CommandInterface $command) {
                    $command['StorageClass'] = 'STANDARD_IA';
                }
            ]);

Thanks to Chris Haas!
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: greg