Buy Now
Sign in

Validation rule in file field

Fredolino , December 11 2019, 14:46
Fredolino 591
December 11 2019, 14:46 #390317
Hi,
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).
optional
Error message is empty
Validation rules: ????
fncustom[{var:upload_excel.file.name}]:Validation message.
In the Functions tab is an upload files function (upload_excel).
File name provider:
Default Allowed extensions list: xls, xlsx
{Var: upload_excel.file.name}. {Var: upload_excel.file.extension}
That is wrong. How must the validation be?
Many greetings
F.