vlucas/valitron

validate attached file

Closed this issue · 1 comments

sir,
how do i validate a attachment file with certain size and certain file types ?
thanks

You validate size as a number, and filetype as a string. You could also make your own custom rule to validate a $_FILES array or an UploadedFile object.

See #157