Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileType returns undefined applications/octet-stream pdf file #622

Open
Datodia opened this issue Jan 17, 2024 · 2 comments
Open

FileType returns undefined applications/octet-stream pdf file #622

Datodia opened this issue Jan 17, 2024 · 2 comments

Comments

@Datodia
Copy link

Datodia commented Jan 17, 2024

No description provided.

@sindresorhus
Copy link
Owner

You will need to share a file that reproduces the issue (preferably as small as possible).

@Datodia
Copy link
Author

Datodia commented Jan 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants