mimetype
mimetype copied to clipboard
A fast Golang library for media type and file extension detection, based on magic numbers
The problem: Code coverage reported by codecov is not accurate Why: The bulk of code, which is the `magic` package has very few unit tests. In root directory there is...
**Expected MIME type** application/zip **Returned MIME type** application/vnd.openxmlformats-officedocument.spreadsheetml.sheet **Version of the library you are using** v1.4.2 **Output of `go version`** go version go1.20.4 linux/amd64 **Additional context** Looks very much like...
**Attach the file for which the detection is inaccurate** You can use the file sharing site of your choice, just ensure the file will not expire or get deleted. **Expected...
**Request:** Provide a way to remove some default detectors from the tree. **Background:** Experiencing out-of-memory issues when the CSV/TSV parsers use memory wastefully on large files. I don't care about...
add .apk file formate in list
Example txt [txt.txt](https://github.com/gabriel-vasile/mimetype/files/9836186/txt.txt) detect as `application/octet-stream`
Bumps the github-actions group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `4.1.2` |...
**Attach the file for which the detection is inaccurate** You can use the file sharing site of your choice, just ensure the file will not expire or get deleted. [sample.csv](https://github.com/gabriel-vasile/mimetype/files/14334224/sample.csv)...
If for some reason the readLimit gets set to 0, the DetectReader will read the entire file into memory. This can be many GBs in size that would be read...