This is done better by commit 6210eb056f880a52edfe9de64c6839154a5c7429.
Attach a file by drag & drop or click to upload