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 Feb 2, 2024
1 parent 9923831 commit f5df7cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const getMimetype = async(file: Uint8Array | Buffer, name?: string): Prom
try {
type = await fromBuffer(file);
} catch(e) {
console.log('name: ',name)
// A temporary solution for some PNG files when resized
if (!name){
return 'image/png';
Expand Down

0 comments on commit f5df7cc

Please sign in to comment.