vendor/plugins/community_engine/engine_plugins/attachment_fu_hacks/lib/attachment_fu_hacks.rb
# Overriding this method to allow content_type to be detected when
# swfupload submits images with content_type set to 'application/octet-stream'
Overriding this method to allow content_type to be detected when
swfupload submits images with content_type set to 'application/octet-stream'
Overriding this method to allow content_type to be detected when swfupload submits images with content_type set to ' application / octet - stream '
def detect_mimetype(file_data)
    if file_data.content_type.strip == "application/octet-stream"
      return File.mime_type?(file_data.original_filename)
    else
      return file_data.content_type
    end
  end
def detect_mimetype ( file_data ) if file_data . content_type . strip == "application/octet-stream" return File . mime_type? ( file_data . original_filename ) else return file_data . content_type end end
Overriding this method to allow content_type to be detected when
swfupload submits images with content_type set to 'application/octet-stream'
Overriding this method to allow content_type to be detected when swfupload submits images with content_type set to ' application / octet - stream '
file_data
<not_specific>