public function onSubmit(FormRuntime $formRuntime, &$elementValue)
    {
        $fileTypeValidator = new FileTypeValidator(array('allowedExtensions' => $this->properties['allowedExtensions']));
        $this->addValidator($fileTypeValidator);
    }