Skip to content

Commit f4e2dc6

Browse files
committed
fix(blob): type pathname override in handleUpload
1 parent 1ff0bd4 commit f4e2dc6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/blob/src/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ export interface HandleUploadOptions {
518518
* @param clientPayload - A string payload specified on the client when calling upload()
519519
* @param multipart - A boolean specifying whether the file is a multipart upload
520520
*
521-
* @returns An object with configuration options for the client token including the optional callbackUrl
521+
* @returns An object with configuration options for the client token including optional callbackUrl and pathname overrides
522522
*/
523523
onBeforeGenerateToken: (
524524
pathname: string,
@@ -534,6 +534,7 @@ export interface HandleUploadOptions {
534534
| 'allowOverwrite'
535535
| 'cacheControlMaxAge'
536536
| 'ifMatch'
537+
| 'pathname'
537538
> & { tokenPayload?: string | null; callbackUrl?: string }
538539
>;
539540

0 commit comments

Comments
 (0)