# File lib/fog/storage.rb, line 66 def self.get_content_type(data) if data.respond_to?(:path) and !data.path.nil? filename = ::File.basename(data.path) unless (mime_types = MIME::Types.of(filename)).empty? mime_types.first.content_type end end end