• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. Developer Guide (Python SDK)
  4. Quick Start
  5. Uploading an Object

Uploading an Object

Sample code:

resp = obsClient.putContent('bucketname', 'objectkey', 'Hello OBS')
if resp.status < 300:    
    print('requestId:', resp.requestId)
else:    
    print('errorCode:', resp.errorCode)
    print('errorMessage:', resp.errorMessage)
NOTE:

For more information, see Object Upload.