When including the header options to copy_object, the headers DO NOT get updated.
Headers don't get updated until I make a separate call using update_object. I hope I'm doing something wrong, but I've tested this 4-5 different ways even getting into the sdk code to poke around.
Is this a bug?
I'm using the latest 1.4.3 SDK
Here is my call:
$amazonS3->copy_object(
array( //Source
'bucket' => SOURCE_BUCKET,
'filename' => $source_file
),
array( //Target
'bucket' => VIDEO_BUCKET,
'filename' => $dest_file,
),
array( //Options
'acl' => AmazonS3::ACL_PRIVATE,
'headers' => array(
'Content-Type' => 'application/octet-stream',
'Content-Disposition' => 'attachment'
)
);