R2 custom metadata not being set

Hello everyone, I'm trying to add some metadata when uploading images to R2 via signed url. Here's the snippet:
const url = await getSignedUrl(
      r2,
      new PutObjectCommand({
        Bucket: 'images',
        Key: fileName,
        ContentType: fileType,
        Metadata: {
          user: userId,
          workspace: workspaceId,
        }
      }),
      { expiresIn: 60 }
    )

When I go to the dashboard I see "no custom metadata set".
CleanShot_2023-09-18_at_14.50.192x.png
Was this page helpful?