Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
generators/paperclip | ||
paperclip | ||
tasks | ||
paperclip.rb |
There are some file types that the file command doesn't understand. Notably, files that have a format, but are ASCII-text based (like ruby, certificates, etc), show up as text/plain. This presents a problem, because the mime-types gem either doesn't report them at all (as for .pem files) or reports them differently (as for .rb files). This change allows a Paperclip.options[:content_type_mapping] hash, which allows for a mapping of { :pem => "text/plain" } which tells the spoof detector that this is an OK matchup and to allow it.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
generators/paperclip | Loading commit data... | |
paperclip | Loading commit data... | |
tasks | Loading commit data... | |
paperclip.rb | Loading commit data... |