Skip to content

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

Description

@Cievoloth

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions