API function was introduced by PR: https://github.com/gitlabhq/gitlabhq/pull/9591
Attach a file by drag & drop or click to upload