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