mimetype icon indicating copy to clipboard operation
mimetype copied to clipboard

A fast Golang library for media type and file extension detection, based on magic numbers

Results 87 mimetype issues
Sort by recently updated
recently updated
newest added

[mimetype used `application/octet-stream` until now for these formats](https://github.com/gabriel-vasile/mimetype/blob/c6adf9ad07f1287ec8618b6b709f29cfa5acd0e8/tree.go#L190-L191). Now that `application/vnd.shp` and `application/vnd.shx` have been registered at IANA, they can be used. https://www.iana.org/assignments/media-types/application/vnd.shp https://www.iana.org/assignments/media-types/application/vnd.shx

help wanted
good first issue

I have next bytes: ```go header := []byte{112, 44, 209, 245, 107, 234, 157, 24, 68, 65, 203, 234, 91, 217, 92, 73, 96, 16, 165, 1, 242, 4, 238,...

I have added support for jxr.

https://www.iana.org/assignments/media-types/image/jxr https://www.iana.org/assignments/media-types/image/jxs

enhancement
help wanted
good first issue

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.1.16 to 2.1.17. Changelog Sourced from github/codeql-action's changelog. 2.1.17 - 28 Jul 2022 Update default CodeQL bundle version to 2.10.1. #1143 Commits 0c670bb Merge pull request #1153...

dependencies
github_actions

Added support of netpbm files (PAM, PFM, PBM, PGM, and PPM) and Regular Expression based detector.

Hi, the mime type of python scripts is returned as **application/x-python** but this seems to be rather unique to this library. The `file` command list python scripts as **text/x-script.python** and...

**Attach the file for which the detection is inaccurate** Unfortunately, I am not able to share the original file, but I've tried to fake it and create a new one....

The function: recycleReader(input io.Reader) (mimeType string, recycled io.Reader, err error) in mime_test.go is extremely useful and should be made available.

OpenRaster is just another zip wrapped format with unencrypted `mimetype` file containing `image/openraster`. I believe searching for `mimetypeimage/openraster` at offset 30 is the correct way to detect it. Tested with...