You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
@@ -124,14 +123,14 @@ Users with push access to the repository can delete a release.
124
123
125
124
##Upload a release asset
126
125
127
-
This is a unique endpoint. Thedomain of therequestchanges from "api.github.com"
128
-
to**"uploads.github.com"**. You need to use an HTTP client which supports
126
+
This is a unique endpoint. The request's domainchanges from`"api.github.com"`
127
+
to**`"uploads.github.com"`**. You need to use an HTTP client which supports
129
128
[SNI](http://en.wikipedia.org/wiki/Server_Name_Indication) to make calls to this
130
129
endpoint.
131
130
132
-
The asset data is expected in its raw binary form,
133
-
instead of JSON.Everything else about the endpoint is the same. Pass your
134
-
authentication exactly the same as the rest of the API.
131
+
The asset data is expected in its raw binary form, rather than JSON.
132
+
Everything else about the endpoint is the same.
133
+
Pass yourauthentication exactly the same as the rest of the API.
135
134
136
135
POST https://uploads.github.com/repos/:owner/:repo/releases/:id/assets?name=foo.zip
137
136
@@ -144,7 +143,7 @@ asset's name in a URI query parameter.
144
143
145
144
Name | Type | Description
146
145
-----|------|--------------
147
-
`Content-Type`|`string` |**Required**. The content type of the asset. This should be set in the Header. Example: "application/zip". For a list of acceptable types, refer this list of[common media types](http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types).
146
+
`Content-Type`|`string` |**Required**. The content type of the asset. This should be set in the Header. Example:`"application/zip"`. For a list of acceptable types, refer this list of[common media types](http://en.wikipedia.org/wiki/Internet_media_type#List_of_common_media_types).
148
147
`name`|`string` |**Required**. The file name of the asset. This should be set in the URI query parameter.
149
148
150
149
@@ -157,7 +156,7 @@ Send the raw binary content of the asset as the request body.
157
156
158
157
###Response for upstream failure
159
158
160
-
This may leave an empty asset with a state of "new". It can be safely deleted.
159
+
This may leave an empty asset with a state of`"new"`. It can be safely deleted.
161
160
162
161
<%= headers 502 %>
163
162
@@ -171,9 +170,9 @@ This may leave an empty asset with a state of "new". It can be safely deleted.
171
170
<%= json:release_asset %>
172
171
173
172
If you want to download the asset's binary content, pass a media type of
174
-
"application/octet-stream". The API will either redirect the client to the
173
+
`"application/octet-stream"`. The API will either redirect the client to the
175
174
location, or stream it directly if possible. API clients should handle both a