Skip to content

Commit 90252c8

Browse files
committed
Correct mime type grabbing
1 parent 4fac9b3 commit 90252c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/files/s3.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export async function uploadFile(pathOnDisk: string, pathOnS3: string): Promise<
3434
Key: `${uploadKeyPrefix}${pathOnS3}`,
3535
Body: createReadStream(pathOnDisk),
3636
// ContentMD5: '',
37-
ContentType: mime.contentType(pathOnS3) || "application/octet-stream",
37+
ContentType: mime.lookup(pathOnS3) || "application/octet-stream",
3838
}),
3939
);
4040

0 commit comments

Comments
 (0)