NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #3568 most downloaded on pub.dev
A Flutter package to detect file types based on their magic number instead of MIME types. Supports Flutter on mobile, desktop, and web without native code.
Last release 2 months ago
16 Jul 2026
Release timing varies
gaps range from 2 weeks to 7 months
Nearly every release is documented
notes for 26 of 26 stable releases
Nothing withdrawn
no release was ever pulled
2 years old
26 releases · first in 2025
Bump actions/checkout from 4 to 7 by @dependabot [bot] in #39
Full Changelog: v2.0.0...v2.1.0
mime dependency to version ^2.0.0, resolving version resolution conflicts with Firebase packages and pdf_combiner.detectFileTypeFromPathOrBlob to read only the first chunk of bytes (up to 512 bytes) using stream reading. This prevents high memory usage (OOM errors) and significantly improves detection speeds for large files..gz), Ogg (.ogg / .ogv), and FLAC (.flac) file detection.FileMagicNumber.registerCustomType to allow clients to dynamically register custom extensions, MIME types, and magic numbers from their code.One column per month.
Bump file_picker from 10.3.7 to 10.3.8 in /example by @dependabot [bot] in #33
Full Changelog: v1.4.2...v2.0.0
FileMagicNumberType enum (docx, xlsx, pptx, html, json, xml, csv, svg, txt, rtf, epub). Since enums are exhaustively matched in Dart 3, switch statements over this enum must handle the new types or define a default case.mime package (MimeTypeResolver and lookupMimeType) and cross_file (XFile).FileMagicNumberType.emptyFile regardless of their path extension.Fixed an issue where MP4 files were not detected. #31 .
Fixed an error that confused a PDF with a JP2 image inside, with a JP2 file #27 .
Fixed an issue where JPEG files were detected as TIFF files #17 .
Fixed an issue where PDFA files were not detected.
Fixed some private methods that were publicly accessible.
Breaking change: Resolved an issue with imports where private files are exposed to be imported.
Updated dependencies from example project.
Increased support for Dart from version 3.4.
Updated example project dependencies
getBytesFromPathOrBlob method returning Uint8List object.* Minor improvements. * Added more documentation.
Added detectFileTypeFromPathOrBlob method.
detectFileTypeFromPathOrBlob method.BREAKING CHANGE: MagicNumber has been renamed to FileMagicNumber.
MagicNumber has been renamed to FileMagicNumber.MagicNumberType has been renamed to FileMagicNumberType.detectFileType has been renamed to detectFileTypeFromBytes.Migrated from Dart to Flutter package.
Improved MagicNumberMatchType for offset and exact detection.
MagicNumberMatchType for offset and exact detection.Fixed documentation with file_pickerdependency.
file_pickerdependency.Fixed bytes in example project.
MagicNumberMatchType for offset and exact detection.Very large files are shortened to the first few bytes to speed up the library. This means up to +10x faster on large files.
* Fixed image on pub.dev
* Added coverage in CI * Added more test * Improved readme * Created as Dart package
Update dependencies on example project.
### General * Some minor improvements.
BREAKING CHANGE: detectFileType use a Uint8List instead of a String as parameter doing it universal.
detectFileType use a Uint8List instead of a String as parameter doing it universal.BREAKING CHANGE: Returns MagicNumberType when detectFileType is called.
MagicNumberType when detectFileType is called.### General * Added CI. * Added Example project. * Added Readme. * Added documentation. * Added test.
Your coding agent can read these notes before it upgrades. Set up the MCP server →