filename Checks for a valid filename kirby/src/Toolkit/V.php#L420 V::filename($value): bool Parameters Name Type Default $value * mixed – Return type bool In your code if(V::filename('myfile.jpg')) { echo 'Yay, valid!'; } In fields fields: example: label: Example field type: text validate: filename