mime icon indicating copy to clipboard operation
mime copied to clipboard

Dart package for working with MIME type definitions and for processing streams of MIME multipart media types.

Results 34 mime issues
Sort by recently updated
recently updated
newest added

based off pr #15 , afterwards I realized in the meantime `mimeFromExtension` had already been added 🙄 but without defaults. I went ahead anyway since @kevmoo [indicated ](https://github.com/dart-lang/mime/issues/13#issuecomment-1350192680) PR's are...

lookupMimeType is it possible to add support for extensions .XLS | .XLSX | .CSV ? ` String mimeType = lookupMimeType('test', headerBytes: file.take(defaultMagicNumbersMaxLength).toList()) ?? ''; ` mimeType return null

Even that's not wrong the `.jpe` extension is less used than `.jpg` or `.jpeg`. Should we change the order of `jpe` in the `defaultExtensionMap`?

type-bug

Added support for mime type 'image/avif'. Code was generated by chatgpt, but it's matching this: https://stackoverflow.com/a/68322450 and i verified it against two avif images (confirmed mime type of them with...

The correct mimetype for APNG images is [`image/apng`](https://wiki.mozilla.org/APNG_Specification#MIME_type), but because APNG uses the same 8 header bytes as PNG, APNG matches [the PNG magic number](https://github.com/dart-lang/mime/blob/ca9f059d2334bb2657683e0a7f5949817cb4b0e6/lib/src/magic_number.dart#L105). The [js file-type library](https://github.com/sindresorhus/file-type/blob/700cf1598bf7661ced25d9e4d8b249c0cdb063cb/core.js#L1115) has...

Hi! I use this lib to detect photos and videos in my code I came up to issue that `.mts` files, that google says are mostly videos, don't get detected...

Please consider to migrate `audio/x-wav` to `audio/wav`. reference: https://mimetype.io/audio/x-wav

I've noticed that there is no a return type in the default_extension_map.dart for blob files, therefore I'm always getting null while bringing a blob file to lookupMimeType

Hello `lookupMimeType(file.path)` In "file" is XFile (image_picker), return video/quicktime, but file is .mp4. Using this Simulator for iOS. How to resolve? mime: 1.0.4 Flutter 3.7.12 • channel stable • https://github.com/flutter/flutter.git...

The entry for `obj` seems outdated and was last updated 6 years ago. Since then, `model/obj` has been registered with IANA https://www.iana.org/assignments/media-types/model/obj