# File lib/paperclip/content_type_detector.rb, line 6definitialize(filename)
@filename = filenameend
Public Instance Methods
detect()click to toggle source
# File lib/paperclip/content_type_detector.rb, line 10defdetectifblank_name?SENSIBLE_DEFAULTelsifempty_file?EMPTY_TYPEelsif!match?type_from_file_commandelsif!multiple?possible_types.firstelsebest_type_matchend.to_send