Skip to content

Fix secure file create bug with missing name param

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

Merge request reports

Loading