src/common-ui/lib/common-ui/uploaded_file.rb
# Uploaded file must be of type ActionDispatch::Http::UploadedFile
Uploaded file must be of type ActionDispatch::Http::UploadedFile
Uploaded file must be of type ActionDispatch :: Http :: UploadedFile
def validate_content_type
        return unless @allowed_content_types
        content_type = @file.content_type
        @allowed_content_types.each do |each|
          return if each.eql?(content_type)
        end
        raise I18n.t("backup.error.invalid_content_type", {
            :content_type => content_type,
            :allowed_content_types => @allowed_content_types.join(", ")
        })
      end
def validate_content_type return unless @allowed_content_types content_type = @file . content_type @allowed_content_types . each do | each | return if each . eql? ( content_type ) end raise I18n . t ( "backup.error.invalid_content_type" , { :content_type => content_type , :allowed_content_types => @allowed_content_types . join ( ", " ) } ) end
Uploaded file must be of type ActionDispatch::Http::UploadedFile
Uploaded file must be of type ActionDispatch :: Http :: UploadedFile