Skip to content

Commit 1bde9d7

Browse files
feat: add support for NEF image format in content type validation
1 parent 782ce43 commit 1bde9d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/s3/src/worker-preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const normalizeExt = (ext?: string | null) =>
8181
// Image handling helpers
8282
const isImageContentType = (ct?: string | null) =>
8383
!!ct &&
84-
/^(image)\/(jpeg|jpg|png|webp|avif|gif|tiff|bmp|x-icon|svg\+xml)$/i.test(ct);
84+
/^(image)\/(jpeg|jpg|png|webp|avif|gif|tiff|bmp|nef|x-icon|svg\+xml)$/i.test(ct);
8585

8686
function detectOutputFormat(
8787
ext?: string | null,

0 commit comments

Comments
 (0)