This problem was properly solved in 4.0 / unstable. Here is just a quick fix for the warning.
Attach a file by drag & drop or click to upload