Problem/Motivation
When uploading multiple files in a file managed field and one or more files exceed the (environment's) upload limit (without using the file_validate_size upload validator), the file name(s) are not shown.
Proposed resolution
The problem is the use of SplFileInfo->getFilename() for the error messages, which is empty. SplFileInfo->getClientOriginalName() should be used, like it is later for the file entity values array.
Remaining tasks
This issue is not targeting the file_validate_size upload validator, which seem to have the same problem and need to be addressed in another issue.
User interface changes
The error message will change fromThe file could not be saved because it exceeds 2 MB, the maximum allowed size for uploads.
toThe file BILL FAY - BE NOT SO FEARFUL.mp3 could not be saved because it exceeds 2 MB, the maximum allowed size for uploads.
API changes
None.
Data model changes
None.