I might be being a numpty - but has

I might be being a numpty - but has anyone got custom metadata working with presigned urls working in R2? The docs are a little light on how the custom metadata works - I'm using the recommended @aws-sdk/client-s3 And assumed it would be like - but no dice so far
const url = await getSignedUrl(
S3,
new PutObjectCommand({
ACL: 'public-read',
Bucket: R2_BUCKET,
ContentType: fileType,
Key: key,
// 👇
Metadata: { 'foo': '123', 'bar': 'baz' }}),
{ expiresIn: 60 * 5 }
)
const url = await getSignedUrl(
S3,
new PutObjectCommand({
ACL: 'public-read',
Bucket: R2_BUCKET,
ContentType: fileType,
Key: key,
// 👇
Metadata: { 'foo': '123', 'bar': 'baz' }}),
{ expiresIn: 60 * 5 }
)
1 Reply
Want results from more Discord servers?
Add your server