Fix creating a file in an empty repo using the API Closes #28626 See merge request !9632
Attach a file by drag & drop or click to upload