Fix #7884 and #7887 by implementing the first proposition.
Attach a file by drag & drop or click to upload