This is pretty minor since files are very rarely used. Presumably it gets confused because the normal value of the file doesn't really exist.
Steps to replicate the issue (include links if applicable):
- Create an HTMLForm where one of the fields have [ type=>'file', 'required' => true]
- Submit the form including the file
What happens?:
Error about file not being present even though it is.
What should have happened instead?:
- It should think the required requirement is satisified
Software version (skip for WMF-hosted wikis like Wikipedia):
current master (1.40)
What needs to be done
Probably override HTMLFileField::validate method to check required differently (e.g. get the Upload value from WebRequest, and check it is really there instead of doing what the parent is).
Alternatively, maybe the data for the field should not be null.