Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-singh-filestack committed Jan 4, 2024
1 parent db215ba commit a3d7103
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 @@ -104,7 +104,7 @@ export const uniqueId = (len: number = 10): string => {
export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Promise<string> => {
let type = await fromBuffer(file);

const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];
const excludedMimetypes = ['text/plain', 'application/x-ms', 'application/x-msi', 'application/zip'];

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

0 comments on commit a3d7103

Please sign in to comment.