const url = await getSignedUrl(
r2,
new PutObjectCommand({
Bucket: 'images',
Key: fileName,
ContentType: fileType,
Metadata: {
user: userId,
workspace: workspaceId,
}
}),
{ expiresIn: 60 }
)
const url = await getSignedUrl(
r2,
new PutObjectCommand({
Bucket: 'images',
Key: fileName,
ContentType: fileType,
Metadata: {
user: userId,
workspace: workspaceId,
}
}),
{ expiresIn: 60 }
)