Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading compressed asset seems to be corrupt while using the API #350

Open
Cievoloth opened this issue Sep 10, 2019 · 0 comments
Open

Comments

@Cievoloth
Copy link

Hello,

Just being automating some releases and after successfully uploading the asset related to a release the file seems to be corrupt (is not possible to untar/unzip it the file seems to have another format). Is this perhaps a problem while using the API to do it so? while using the web interface this works smoothly..

Here is my upload code

curl -X POST -H "Content-Type:application/gzip" -H "Authorization: token $token" -F "file=@$release_name.tar.gz; type=application/gzip" https://uploads.github.com/repos/foo/foo/releases/$ID/assets?name=$release_name.tar.gz)

Thanks for your kind help

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant