You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
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'] }
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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'] }
The text was updated successfully, but these errors were encountered: