Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-singh-filestack committed Jan 16, 2024
1 parent 3fd7285 commit 61522e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
const excludedMimetypes = ['text/plain', 'application/octet-stream', 'application/x-ms', 'application/x-msi', 'application/zip'];

if (type && excludedMimetypes.indexOf(type.mime) === -1) {
console.log("mime1: ", type.mime);
return type.mime;
}

console.log("mime: ", type.mime);
if (name && name.indexOf('.') > -1) {
const mime = extensionToMime(name);
console.log("mime: ", mime);

if (mime) {
return mime;
Expand Down

0 comments on commit 61522e7

Please sign in to comment.