Lightly refactor js files related to file template selectors. See merge request !1496
Attach a file by drag & drop or click to upload