{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/754","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/754/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/754/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/754/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/issues/754","id":63871813,"number":754,"title":"STORAGE: Send blob metadata in upload requests","user":{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/labels/storage","name":"storage","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/milestones/6","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/milestones/Storage%20Stable","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/milestones/6/labels","id":958844,"number":6,"title":"Storage Stable","description":"","creator":{"login":"jgeewax","id":112928,"avatar_url":"https://avatars.githubusercontent.com/u/112928?v=3","gravatar_id":"","url":"https://api.github.com/users/jgeewax","html_url":"https://github.com/jgeewax","followers_url":"https://api.github.com/users/jgeewax/followers","following_url":"https://api.github.com/users/jgeewax/following{/other_user}","gists_url":"https://api.github.com/users/jgeewax/gists{/gist_id}","starred_url":"https://api.github.com/users/jgeewax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgeewax/subscriptions","organizations_url":"https://api.github.com/users/jgeewax/orgs","repos_url":"https://api.github.com/users/jgeewax/repos","events_url":"https://api.github.com/users/jgeewax/events{/privacy}","received_events_url":"https://api.github.com/users/jgeewax/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":80,"state":"open","created_at":"2015-01-30T20:34:25Z","updated_at":"2015-03-24T01:11:55Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-03-24T01:11:55Z","updated_at":"2015-03-24T06:32:51Z","closed_at":null,"body":"When `self._changes` is not empty, we should upgrade a `media` request to a [multipart upload][1]:\r\n\r\n> If you have metadata that you want to send along with the data to upload, you can make a single `multipart/related` request. This is a good choice if the data you are sending is small enough to upload again in its entirety if the connection fails.\r\n\r\nwhereas for resumable uploads, we should\r\n\r\n> Make an initial request to the upload URI that includes the metadata, if any.\r\n\r\n@craigcitro Is there a way to set the body of the initial request in a resumable upload?\r\n\r\nH/T to @pdknsk for #536 \r\n\r\n[1]: https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#multipart\r\n[2]: https://cloud.google.com/storage/docs/json_api/v1/how-tos/upload#resumable"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/comments/85362811","html_url":"https://github.com/GoogleCloudPlatform/gcloud-python/issues/754#issuecomment-85362811","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-python/issues/754","id":85362811,"user":{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T06:32:50Z","updated_at":"2015-03-24T06:32:50Z","body":"It doesn't ever get put in headers. The only place it is used is in the creation of the `Upload` object:\r\n\r\n```python\r\n        upload = transfer.Upload(file_obj, content_type, total_bytes,\r\n                                 auto_transfer=False,\r\n                                 chunksize=self.CHUNK_SIZE)\r\n```"}}