Put object
put_object(key, content, content_type="application/octet-stream")
Uploads the content object to TruStorage under the name key
f = open("directory/file.txt", "r")
storage.put_object(key="directory/file.txt", content=f, content_type="text/plain")
Parameters
| Param | Type | Description | Required | 
|---|---|---|---|
| key | str | Object name in the storage | True | 
| content | object | An object having callable read()returning bytes object | True | 
| content_type | str | Content type of the object | False |