Better to use GitLab UI components which produce pretty much the same syntax.
Attach a file by drag & drop or click to upload