Vocabulary
s3

Inputs
dataan object
mime-typea string
bucketa string
keya string
headersan assoc


Outputs
None

Word description
Stores the object under the key in the given bucket. The object has the given mimetype. 'headers' should contain key/values for any headers to be associated with the object. 'data' is any Factor object that can be used as the 'data' slot in <post-data>. If it's a <pathname> it stores the contents of the file. If it's a stream, it's the contents of the stream, etc.

Examples
USING: s3 ; "hello" binary encode "text/plain" "testbucket" "hello.txt" H{ { "x-amz-acl" "public-read" } } put-object

USING: s3 ; "hello.txt" <pathname> "text/plain" "testbucket" "hello.txt" H{ { "x-amz-acl" "public-read" } } put-object


Definition