Fix secure file create bug with missing name param
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
The Secure File Create API works slightly differently to other file upload endpoints where it also needs a name
parameter in the request. This is a breaking change to the function but as it couldn't possibly work anyway that shouldn't be much of a problem.
Error reported on gitlab-org/cli!1994 (closed):
ERROR: Error creating securefile: POST https://gitlab.com/api/v4/projects/:id/secure_files: 400 {error: name is missing}
Edited by Heidi Berry