Updated on 2023-12-25 GMT+08:00

Uploading an Object

If you have any questions during the development, post them on the Issues page of GitHub. For details about parameters and usage of each API, see the API Reference.

Sample code:

PutObjectRequest request = new PutObjectRequest
{
    BucketName = "bucketname",
    ObjectKey = "objectname",
    InputStream = new MemoryStream(Encoding.UTF8.GetBytes("Hello OBS"))
};
client.PutObject(request);

For more information, see Object Upload Overview.