Buy Now
Sign in

Validation rule in file field

Fredolino , December 11 2019, 14:46
Fredolino 591
December 11 2019, 14:46 #390317
would like to display an errormess message if a user wants to upload a file with the wrong name.
Im Views-Tab ist ein File field (field_file_import).
Error message is empty
Validation rules: ????
fncustom[{}]:Validation message.
In the Functions tab is an upload files function (upload_excel).
File name provider:
Default Allowed extensions list: xls, xlsx
{Var:}. {Var: upload_excel.file.extension}
That is wrong. How must the validation be?
Many greetings