By quietone on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.5.x
Introduced in version:
9.5.0
Issue links:
Description:
The file element now has a value and can be set required. The value will be an array of \Symfony\Component\HttpFoundation\File\UploadedFile objects.
Previously, a form with a required file element, such as show below, would fail and could not be submitted.
$form['file_test_upload'] = [
'#type' => 'file',
'#required' => TRUE,
];Impacts:
Module developers