const command = new PutObjectCommand({
Bucket: ENV_VARIABLES.R2.R2_BUCKET_NAME,
Key: key,
ContentLength: fileSizeInBytes,
ContentType: contentType,
ContentMD5: md5_checksum,
CacheControl: "private, max-age=2592000", // 30 days
Metadata: {
"userr": "userr"
}
});
return await getSignedUrl(FileStorage._s3Client, command, { expiresIn: expiresInSeconds });
const command = new PutObjectCommand({
Bucket: ENV_VARIABLES.R2.R2_BUCKET_NAME,
Key: key,
ContentLength: fileSizeInBytes,
ContentType: contentType,
ContentMD5: md5_checksum,
CacheControl: "private, max-age=2592000", // 30 days
Metadata: {
"userr": "userr"
}
});
return await getSignedUrl(FileStorage._s3Client, command, { expiresIn: expiresInSeconds });