diff --git a/application/lang/en/validation.php b/application/lang/en/validation.php index be2aaf66..67d22c34 100644 --- a/application/lang/en/validation.php +++ b/application/lang/en/validation.php @@ -45,7 +45,7 @@ return array( |-------------------------------------------------------------------------- */ - "file_wrong_type" => "The :attribute is an invalid file type.", + "file_wrong_type" => "The :attribute must be a file of type: :types.", "file_too_big" => "The :attribute exceeds size limit of :maxkb.", ); \ No newline at end of file diff --git a/system/validation/rules/upload_of.php b/system/validation/rules/upload_of.php index 77d71bbb..4dfba8ca 100644 --- a/system/validation/rules/upload_of.php +++ b/system/validation/rules/upload_of.php @@ -106,7 +106,7 @@ class Upload_Of extends Nullable_Rule { */ public function is_image() { - $this->types = array_merge($this->types, array('jpg', 'gif', 'png', 'bmp')) + $this->types = array_merge($this->types, array('jpg', 'gif', 'png', 'bmp')); return $this; }