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.

use file -b --mime 'test.json' have problem in AWS linux 2  #2707

@calos0921

Description

@calos0921

We use the AWS linux2 image and to run file -b --mime 'test.json'
result: text/plain; charset=us-ascii.

So we use application/json and text/plain to resolve the problem.
validates_attachment :file, content_type: { content_type: ['application/json', 'text/plain'] }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions