Bug signaled by @vattezhang in PR #5940 but fixed differently.
Attach a file by drag & drop or click to upload