Skip to content

Commit

Permalink
2017-03-16 1820
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmcarvalho committed Mar 16, 2017
1 parent 5df5923 commit 7bbbde5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ There are two types of validators, one to validate information of the files call
->add('file1', 'isThisMimeType', [
'rule' => ['isThisMimeType', ['image/jpeg', 'image/png']],
'message' => 'File is not of the correct type',
'last' => true,
'provider' => 'upload'
]);
}
Expand Down Expand Up @@ -357,6 +358,7 @@ or
->add('file1', 'isThisExtension', [
'rule' => ['isThisExtension', ['jpg', 'png']],
'message' => 'Wrong image extension',
'last' => true,
'provider' => 'upload'
]);

Expand Down

0 comments on commit 7bbbde5

Please sign in to comment.