This commit fixes bug reported at #5998. Thanks to @tomcat1102.
Attach a file by drag & drop or click to upload