Trying to post generic package to registry give content type error

Trying to post generic package as a test with the instruction provided by GitLab Generic Packages Repository | GitLab results in content type errors using curl.

curl --header “PRIVATE-TOKEN: xxxxxxxxxxxxxxxxxx --header Content-Type: application/zip-compressed” --upload-file /home/ggiacalone/keyvalue.zip “https://gitlab.com/api/v4/groups/xxxxxxxxxx/packages/generic/keyvalue/1.0.0/keyvalue.zip

I have tried all four zip content types

The token has been replaced with x placeholder and well as the group id.

Please advise
thank you

Hi,

AFAIK, there is no package repository on group level. You must have a project inside a group and push to the project’s package repository.

1 Like

Thank you that worked…