title: Uploading binary file to API using python
body: <p>I am trying to upload a package binary over to the RestAPI of storage using python. But it keeps throwing error and couldn't upload the file. 
  Below is the code I am using to achieve it :</p>
  
  <pre><code>jsonheaderup={'Content-Type': 'application/octet-stream'}
  
  file = open('install.pkg.gz', 'rb')
  files = {'file': file}
  
  def upload_code():
  
    u = requests.post("%s/api/sys/v2/updates" % (url), files=files, verify=False,      headers=jsonheaderup)
    l = json.loads(u.text)
  
  upload_code()
  </code></pre>