I thought this was perhaps related to, but AFAICT that's not the case. The symptom is the same though.
file.js seems to be correct.
Try uploading an image at
node/add/article inside CKEditor.
file.js causes JS errors. Specifically on
this.value.length > 0
this.value, which in turn is because
this == the <div>, not the <input>.
That, in turn, is because of
selector === '#edit-fid-upload', instead of
'#edit-fid-upload--2'. Therefor it listens for events at
<div>) rather than at
That, again, in turn, is because
drupalSettings.file.elements does not contain
'#edit-file-upload--2'. So either
ajaxPageState is broken again/in yet another way, or the HTML ID being generated for the file upload input element is somehow wrong.
User interface changes
Beta phase evaluation
|Issue category||Bug because this is a basic input validation that is present in Drupal 7, with broken code present in 8.|
|Issue priority||Major because this affects all file upload fields for all users.|
|Prioritized changes||Prioritized because it is a bug fix and an improvement to basic user experience|