Open Datodia opened 7 months ago
const fileTypeReader = await import('file-type') const fileInfo = await fileTypeReader.fileTypeFromBuffer(content)
content is buffer
console.log(fileInfo.mime) //expected application/octet-stream //actual is undefined
@sindresorhus came across this issue today, happens with this file: 1000503577.pdf
You will need to share a file that reproduces the issue (preferably as small as possible).