Skip to content

Commit

Permalink
feat(storage): allow checksum algo for internal upload API (#14002)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored Nov 11, 2024
1 parent c86f3ba commit 405b2cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/storage/__tests__/internals/apis/uploadData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ describe('uploadData (internal)', () => {
onProgress,
metadata,
expectedBucketOwner,
checksumAlgorithm: 'crc-32',
},
});

Expand All @@ -67,6 +68,7 @@ describe('uploadData (internal)', () => {
onProgress,
metadata,
expectedBucketOwner,
checksumAlgorithm: 'crc-32',
},
});
expect(result).toEqual(mockedUploadTask);
Expand Down
1 change: 1 addition & 0 deletions packages/storage/src/internals/apis/uploadData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const uploadData = (input: UploadDataInput) => {
metadata: options?.metadata,
preventOverwrite: options?.preventOverwrite,
expectedBucketOwner: options?.expectedBucketOwner,
checksumAlgorithm: options?.checksumAlgorithm,

// Advanced options
locationCredentialsProvider: options?.locationCredentialsProvider,
Expand Down

0 comments on commit 405b2cc

Please sign in to comment.