Skip to content

Unable to upload pypi package via PUT request

Hi,

I have followed the gitlab link https://docs.gitlab.com/ee/api/packages/pypi.html to upload pypi package to the package registry. it is throwing me an error "{"error":"The provided content-type '' is not supported."}. I am not able to figure out the issue. Can you please help me on this?

curl --request PUT
--upload-file test.tar.gz
--user xxxxxxx@xxx.com:xxxxxxx
"https://gitlab.example.com/api/v4/projects/1/packages/pypi"

Edited by 🤖 GitLab Bot 🤖