This piece of code really ought to be fixed better than that (cherry picked from commit ce484549)
Attach a file by drag & drop or click to upload