Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

ContentType detector backends #1523

@miyagawa

Description

@miyagawa

I had a semi-urgent need to run paperclip based Rails apps on a linux CI host without file command installed.

While I could ask the admin to install them, I chose to implement (mostly for a demo purpose) a monkey patch to override the file command with the mimemagic gem and it turned out to work fine: paperclip-mimemagic

If there were a proper hook to register a separate backend to detect content types for a file, i could write it as a proper plugin rather than a monkey patch. I wonder if there's any interest in it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions