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.
I want to attach file with .fasta extension which has a plain/text content type.
Content type validators throws : Content Type Spoof: Filename file.fasta ([]), content type discovered from file command: text/plain. See documentation to allow this combination.
Validation from my model : validates_attachment :fasta_file, :content_type => { :content_type => 'text/plain' }
So I would like to associate custom file extension to content type (fasta -> plain/text)
PS : uploading file.txt (with same content) works fine.
The text was updated successfully, but these errors were encountered:
I want to attach file with .fasta extension which has a plain/text content type.
Content type validators throws :
Content Type Spoof: Filename file.fasta ([]), content type discovered from file command: text/plain. See documentation to allow this combination.
Validation from my model :
validates_attachment :fasta_file, :content_type => { :content_type => 'text/plain' }
So I would like to associate custom file extension to content type (fasta -> plain/text)
PS : uploading file.txt (with same content) works fine.
The text was updated successfully, but these errors were encountered: