put value
This block is part of the object storage group and was last modified in core v15.0.1.
put value v15.0.1 Uploads a value as an object : JSON, rendered text, or any payload the flow computed rather than read from disk.
- flow
flow - connection required
s3connectionThe object storage connection to use, from an open connection block.
- bucket
valueBucket name. Leave empty to use the bucket set on the connection.
- key required
valueThe object key, for example
reports/2026-09.json. - value
valueThe contents to store. An empty value stores an empty object.
- content type
valueOptional. Overrides the type guessed from the key's extension.
- cache control
valueOptional
Cache-Controlstored with the object. For content-addressed media usepublic, max-age=31536000, immutable. - ACL
valueOptional canned ACL. Leave empty (the default) to let the bucket policy decide, which is what Ceph RGW buckets normally want.
- metadata
objectOptional user metadata, stored as
x-amz-meta-*headers. Keys must be letters, digits,-,_or.; anything else is dropped.
- flow
flow - connection
s3connectionThe same connection, so it can be passed to the next block.
- success
condition - error
value - key
valueThe key the object was stored under.
- etag
valueThe object's ETag, without the quotes S3 wraps it in. For a single-part upload this is the MD5 of the content.
- size
numberBytes uploaded.
- content type
valueThe Content-Type the object was stored with.
- url
valueThe object's unsigned URL. It only resolves for a publicly readable object : use presign get url for a private one.
Uploads the `value` pin's contents as the object at `bucket`/`key`. For a payload already in memory; use s3connection_put_object for a file on disk. Numbers are rendered with strconv, not %v, so a large integer on a float64 pin stores as "1000000" and not "1e+06". An absent or empty value stores an EMPTY object rather than failing : "" and "no value" are the same thing on a value pin. Content-Type comes from the `content_type` pin, else the key's extension, else application/octet-stream. success=false with NO_CONNECTION, MISSING_BUCKET, MISSING_KEY, or an S3 error code.
s3 put string |
upload value |
write object |
put text |
Version history
Introduced in v15.0.1.
Back to
object storage Return to the main group to view all sub-groups Back to object storage Return to the group to view all blocks within this group