From a1d34d375158320f4c2b071b15eaf1edcf39768f Mon Sep 17 00:00:00 2001 From: Allan Zheng Date: Thu, 7 Nov 2024 15:23:19 -0800 Subject: [PATCH] chore(react-storage): address comment --- .../src/components/StorageBrowser/actions/handlers/upload.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/react-storage/src/components/StorageBrowser/actions/handlers/upload.ts b/packages/react-storage/src/components/StorageBrowser/actions/handlers/upload.ts index fbf17e2df42..3063629b80c 100644 --- a/packages/react-storage/src/components/StorageBrowser/actions/handlers/upload.ts +++ b/packages/react-storage/src/components/StorageBrowser/actions/handlers/upload.ts @@ -13,8 +13,6 @@ import { import { constructBucket } from './utils'; -const CHECKSUM_ALGORITHM_CRC32 = 'crc-32' as const; - export interface UploadHandlerOptions extends TaskHandlerOptions { preventOverwrite?: boolean; } @@ -69,7 +67,7 @@ export const uploadHandler: UploadHandler = ({ }, preventOverwrite, customEndpoint, - checksumAlgorithm: CHECKSUM_ALGORITHM_CRC32, + checksumAlgorithm: 'crc-32', }, };