Filemanger in Form when not logged ...

Re: Filemanger in Form when not logged ...

by Baptiste Lhoste -
Number of replies: 0

Hi everybody,

In case of someone need the answer, I finally handle the check of file extension by using :

$mform->addRule('document_1', 'Wrong extension (allowed are .jpg, .png and .pdf)', 'filename', 'myregex'); 

Best regards,

Tistou