Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-singh-filestack committed Jan 16, 2024
1 parent 18491c5 commit a64978d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
}

try {
if (isutf8(file)) {
if (isutf8(file)){
console.log("hitting here");
return 'text/plain';
}
} catch (e) {
Expand All @@ -138,6 +139,7 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
return type.mime;
}

return 'application/octet-stream';
};

/**
Expand Down

0 comments on commit a64978d

Please sign in to comment.