Skip to content

Using magic number to detect file ext and mime type

Choose a tag to compare

@thetutlage thetutlage released this 10 Jul 11:39

Instead of relying on the file extension and header content type, now we make use of magic number to pull the file ext and mime type by inspecting it's content.

Commits

  • chore(deps-dev): update husky requirement from ^2.7.0 to ^3.0.0 b06778a
  • fix: .snyk & package.json to reduce vulnerabilities 6ff6106
  • chore(package): update dependencies 24c98c4
  • feat: detect file mime type and ext using magic number 8b913cc