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
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