Forums

Validation rule in file field

Fredolino 11 Dec, 2019
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.
This topic is locked and no more replies can be posted.