From aeede71faa3ccf60fa399a312a046a2009a5691d Mon Sep 17 00:00:00 2001 From: pupilcc Date: Tue, 31 Dec 2024 23:10:00 +0800 Subject: [PATCH] feat: Add content type for uploaded files in S3 operations --- src/s3/operations.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/s3/operations.ts b/src/s3/operations.ts index f65c138..64ff143 100644 --- a/src/s3/operations.ts +++ b/src/s3/operations.ts @@ -14,6 +14,7 @@ export async function uploadFile(file: Buffer, bucket: string, key: string): Pro Bucket: bucket, Key: key, Body: file, + ContentType: 'text/html' }); const connection = OSSConnection.getInstance();