Skip to content

Conversation

@mandarini
Copy link
Contributor

Adds JSDoc note to uploadToSignedUrl() clarifying that the upsert option has no effect. upsert behavior must be set when calling createSignedUploadUrl() instead, as the permission is encoded in the JWT token.

Related #1672

@mandarini mandarini requested review from a team as code owners December 3, 2025 15:38
@github-actions github-actions bot added the storage-js Related to the storage-js library. label Dec 3, 2025
@mandarini mandarini self-assigned this Dec 3, 2025
@coveralls
Copy link

Coverage Status

coverage: 95.367% (+14.2%) from 81.176%
when pulling ea4f661 on docs/storage-upsert
into 2596a09 on master.

Copy link
Contributor

@itslenny itslenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd make sense to also add a note to the upsert param in FileOptions here so it shows in the tooltip when trying to set this param.

Image

The issue is this is on FileOptions which is used in multiple places so you'd need to create a new type (e.g. SignedUploadFileOptions) that is identical but has the note to not use this property. As shown in the above screenshot I think this would be much more discoverable, but does make it an actual code change instead of just docs.

@mandarini mandarini merged commit 336e498 into master Dec 3, 2025
25 checks passed
@mandarini mandarini deleted the docs/storage-upsert branch December 3, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

storage-js Related to the storage-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants