- Issue created by @jaypan
- last update
about 1 year ago Patch Failed to Apply - πΈπ°Slovakia poker10
There are usages in core where
upload_validators
are used with the typefile
. For example inDrupal\system\Form\ThemeSettingsForm
, see: https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/syste...$form['logo']['settings']['logo_upload'] = [ '#type' => 'file', '#title' => $this->t('Upload logo image'), '#description' => $this->t("If you don't have direct file access to the server, use this field to upload your logo."), '#upload_validators' => [ 'FileIsImage' => [], ], ];
Based on this I think it is possible to use
upload_validators
on typefile
as well.