Made some modifications to the code contributed by @thierrytiti and documented the change. Fixes #344
Attach a file by drag & drop or click to upload