Fixes ticket #5484. (cherry picked from commit 5aede051)
Attach a file by drag & drop or click to upload