Skip to content

use mimemagic to determine content type by content #8

@Fivell

Description

@Fivell

Hello, there is note in mimemagic gem README.

MimeMagic is a library to detect the mime type of a file by extension or by content.

MimeMagic.by_magic(File.open('test.html'))

So in what cases should I use cocaine ? When mimemagic is not enough?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions