See PR #2507. This is a reimplementation of the fix that contained different problems.
Attach a file by drag & drop or click to upload