Size

Checks if the value matches a given size

  • return (boolean)

In your code

if(v::size(f::size('/my/file.jpg'), 12121912)) {
  echo 'Yay, valid!';
}

In panel fields

fields:
  example:
    label: Example field
    type: text
    validate:
      size: 12121912