kian
04/27/2023, 10:53 PMwegemit
04/28/2023, 1:45 AMhonzasterba
04/28/2023, 7:55 AMKarew
04/28/2023, 8:35 AMhttps://<subdomain>/<object-key>
PeterC
04/28/2023, 9:51 AMPeterC
04/28/2023, 9:51 AMHardAtWork
04/28/2023, 9:52 AMPeterC
04/28/2023, 9:53 AMwget -qO- ... | tar -xv
HardAtWork
04/28/2023, 9:55 AMPeterC
04/28/2023, 9:55 AMHardAtWork
04/28/2023, 9:55 AMPeterC
04/28/2023, 9:56 AMHardAtWork
04/28/2023, 9:56 AMraiyansarker
04/28/2023, 10:57 AMMarty
04/28/2023, 12:02 PMHardAtWork
04/28/2023, 12:03 PMMarty
04/28/2023, 12:23 PMmagicthib
04/28/2023, 12:32 PMzendev
04/28/2023, 3:07 PMdanny.m
04/28/2023, 4:31 PMKarew
04/28/2023, 5:23 PMfiles.example.com
, you need to remove the CNAME or whatever you might have set for files
alreadyDave ©
04/28/2023, 5:42 PMzendev
04/28/2023, 7:34 PMknpwrs
04/29/2023, 3:04 AMCopyObjectCommand
to copy an object, and I attempt to set ContentDisposition
on the new object as a part of the CopyObjectCommand
, the new object exists, but the ContentDisposition
is not set. This is my copy code:
ts
await client.send(
new CopyObjectCommand({
Bucket: bucket,
CopySource: `${bucket}/${tmp}`,
Key: key,
ContentDisposition: contentDisposition,
}),
);
The new object at key
exists, but when I use HeadObjectCommand
I don't see a content disposition. This is the reponse:
json
{
"$metadata": {
"httpStatusCode": 200,
"attempts": 1,
"totalRetryDelay": 0
},
"AcceptRanges": "bytes",
"LastModified": "2023-04-29T02:42:09.000Z",
"ContentLength": 4662718,
"ETag": "\"a8b4bcf0648ec79e2e79cb116fda9e7c\"",
"ContentType": "video/mp4",
"Metadata": {}
}
The AWS S3 documentation suggests that ContentDisposition
should be returned: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/preview/client/s3/command/HeadObjectCommand/
I've confirmed through debugging that the value for ContentDisposition
is a string as such: attachment; filename=This%20is%20an%20oink%20moo.mp4;
Karew
04/29/2023, 3:09 AMMetadataDirective: "REPLACE"
and set all the metadata to the new values it should beAmbyjkl
04/29/2023, 9:21 AMAmbyjkl
04/29/2023, 9:21 AMKarew
04/29/2023, 9:22 AM