(policy bucket metadata expiration-window acl)
Generate policy for upload of key
with mime-type
to be uploaded
within expiration-window
, and acl
.
Generate policy for upload of `key` with `mime-type` to be uploaded within `expiration-window`, and `acl`.
(s3-sign bucket aws-zone access-key secret-key)
(s3-sign bucket aws-zone access-key secret-key upload-url)
(sign-upload {:keys [file-name mime-type] :as metadata}
{:keys [bucket aws-zone aws-access-key aws-secret-key acl
upload-url]
:or {acl "public-read"}})
Mapping of AWS zones to S3 endpoints as documented here: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
Mapping of AWS zones to S3 endpoints as documented here: http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close