Я пытаюсь скопировать объект из одного места в другое с помощью ключа шифрования. но я сталкиваюсь с некоторой проблемой
Мои данные
var params = {
Bucket: 'myBucket',
CopySource: 'myBucket/folder/pic.jpeg',
Key: 'folder/newFolder/pic.jpeg',
CopySourceSSECustomerAlgorithm: 'AES256',
CopySourceSSECustomerKey: <Buffer>,
SSECustomerAlgorithm: 'AES256',
SSECustomerKey:<Buffer>
}
s3.copyObject(params, function(err, data) {
if (err) console.log(err, err);
else console.log(data);
});
, тогда я получил ошибку ниже
{
"message": "The encryption parameters are not applicable to this object.",
"code": "InvalidRequest",
"region": null,
"time": "2019-10-18T07:31:26.090Z",
"requestId": "3BEBFD965",
"extendedRequestId": "QFmpHF0a3lQXLne/jnZSNjGqqzkGD9s1C1VoLUpKo=",
"statusCode": 400,
"retryable": false,
"retryDelay": 38.61653390975963
}
Может кто-нибудь, пожалуйста, помогите мне в этом.