app/models/import/base.rb
# Expected and used file content type
Expected and used file content type
Expected and used file content type
def content_type
    content_type = file&.content_type
    case content_type
    when "application/octet-stream"
      "application/zip"
    else
      content_type
    end
  end
def content_type content_type = file &. content_type case content_type when "application/octet-stream" "application/zip" else content_type end end
Expected and used file content type
Expected and used file content type
# Some zip files are viewed as "application/octet-stream"