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 | 
|---|---|---|
| .. | ||
| fixtures | Loading commit data... | |
| io_adapters | Loading commit data... | |
| matchers | Loading commit data... | |
| storage | Loading commit data... | |
| support | Loading commit data... | |
| validators | Loading commit data... | |
| attachment_definitions_test.rb | Loading commit data... | |
| attachment_processing_test.rb | Loading commit data... | |
| attachment_registry_test.rb | Loading commit data... | |
| attachment_test.rb | Loading commit data... | |
| content_type_detector_test.rb | Loading commit data... | |
| database.yml | Loading commit data... | |
| file_command_content_type_detector_test.rb | Loading commit data... | |
| filename_cleaner_test.rb | Loading commit data... | |
| generator_test.rb | Loading commit data... | |
| geometry_detector_test.rb | Loading commit data... | |
| geometry_parser_test.rb | Loading commit data... | |
| geometry_test.rb | Loading commit data... | |
| has_attached_file_test.rb | Loading commit data... | |
| helper.rb | Loading commit data... | |
| integration_test.rb | Loading commit data... | |
| interpolations_test.rb | Loading commit data... | |
| media_type_spoof_detector_test.rb | Loading commit data... | |
| meta_class_test.rb | Loading commit data... | |
| paperclip_missing_attachment_styles_test.rb | Loading commit data... | |
| paperclip_test.rb | Loading commit data... | |
| plural_cache_test.rb | Loading commit data... | |
| processor_test.rb | Loading commit data... | |
| rake_test.rb | Loading commit data... | |
| schema_test.rb | Loading commit data... | |
| style_test.rb | Loading commit data... | |
| tempfile_factory_test.rb | Loading commit data... | |
| thumbnail_test.rb | Loading commit data... | |
| url_generator_test.rb | Loading commit data... | |
| validators_test.rb | Loading commit data... |