Description Usage Arguments Examples
AppendObject
1 2 |
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. |
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.