Skip to content

Commit

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

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

if (mime) {
return mime;
Expand All @@ -126,7 +126,7 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom

try {
if (isutf8(file)) {
console.log("mime: ", "here");
console.log("name: ", name);
return 'text/plain';
}
} catch (e) {
Expand Down

0 comments on commit 52efa28

Please sign in to comment.