AppendObject: AppendObject

Description Usage Arguments Examples

Description

AppendObject

Usage

1
2
AppendObject(bucketname, key, body = "", position = 0, encryption = NULL,
  acl = "private", ..., .md5 = TRUE, .meta = NULL)

Arguments

bucketname

The bucket name

key

The file path of object on oss.

body

The content of object, character or upload_file(file_path).

position

The position of of body to append. Should be the same as existing file length.

encryption

server side encryption algorithm AES256

acl

Access control: private, public-read, public-read-write

...

Set header directly. Cache-Control, Content-Disposition, Content-Encoding, Expires, ...

.md5

boolean Calculate body md5sum automatically or not.

.meta

Other meta info set to the object, < 8k.

Examples

1
2
3
4
5
AppendObject('ross-test', 'test-append.txt', body='1', position = 0)
AppendObject('ross-test', 'test-append.txt', body='2', position = 1, acl = 'public-read', encryption = 'AES256')
AppendObject('ross-test', 'test-append.txt', body='3', position = 2, .md5 = F)
AppendObject('ross-test', 'test-append.txt', body='4', position = 3, .meta = list(location='beijing'))
AppendObject('ross-test', 'test-append.txt', body='5', position = 4, "Content-Encoding"='UTF-8')

gahoo/ross documentation built on May 16, 2019, 5:35 p.m.