I have a form to get the file from the user and I validate the file format with the following rule:
$valid = validator