psugand / CodeIgniter-S3

Amazon S3 Library for CodeIgniter
http://prashant.es
241 stars 115 forks source link

Adding REDUCED_REDUNDANCY support #12

Closed daverogers closed 10 years ago

daverogers commented 10 years ago

Simply adds $storageClass to end of putObject’s params, defaulting to STANDARD (backwards compatible), which sets Amazon meta header “x-amz-storage-class”

Resolves issue “REDUCED_REDUNDANCY #9” https://github.com/psugand/CodeIgniter-S3/issues/9

daverogers commented 10 years ago

I ported tpyo’s code from his “amazon-s3-php-class” repo to putObject, where he already supported RR & SSE. I overwrote my last change for consistency’s sake, added constants for them, swapped out ACL param with constant (again, for consistency), and added storage class to copyObject.

Resolves issue #4