Port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3463#note_47990536
Attach a file by drag & drop or click to upload