Skip to content
This repository has been 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

Open
calos0921 opened this issue Nov 10, 2022 · 0 comments
Open

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

calos0921 opened this issue Nov 10, 2022 · 0 comments

Comments

@calos0921
Copy link

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'] }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant