Skip to content

Commit

Permalink
add to exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-singh-filestack committed Feb 2, 2024
1 parent 5d6b4bf commit 403e712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
return mime;
}
}
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
const excludedMimetypes = ['text/plain','image/png', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];

if (type && excludedMimetypes.indexOf(type.mime) === -1) {
return type.mime;
Expand Down

0 comments on commit 403e712

Please sign in to comment.