Skip to content

Commit

Permalink
feat: Add content type for uploaded files in S3 operations
Browse files Browse the repository at this point in the history
  • Loading branch information
pupilcc committed Dec 31, 2024
1 parent 40a4ec1 commit aeede71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/s3/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aeede71

Please sign in to comment.