This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-19
Channels
- # adventofcode (7)
- # aws (6)
- # babashka (7)
- # beginners (200)
- # calva (49)
- # chlorine-clover (3)
- # cider (24)
- # clj-kondo (115)
- # cljs-dev (5)
- # cljsrn (16)
- # clojure (44)
- # clojure-australia (9)
- # clojure-czech (1)
- # clojure-dev (1)
- # clojure-europe (63)
- # clojure-france (6)
- # clojure-losangeles (1)
- # clojure-nl (2)
- # clojure-spec (27)
- # clojure-uk (77)
- # clojurescript (45)
- # clojurewerkz (3)
- # conjure (5)
- # cryogen (1)
- # cursive (2)
- # datahike (6)
- # datascript (3)
- # datomic (18)
- # fulcro (5)
- # graalvm (55)
- # jobs (3)
- # luminus (4)
- # malli (1)
- # pathom (1)
- # reagent (16)
- # shadow-cljs (67)
- # spacemacs (18)
- # sql (57)
- # testing (6)
- # tools-deps (9)
I’m using amazonica to upload a file to a bucket like so:
(s3/put-object “humboi-videos” “video1.mp4" “./resources/public/sample.mp4”)
The objects that are created are not publicly readable, and I want them to be publicly readable. How to do this? Secondly, how to programmatically access the object uri?
You need to pass :access-control-list {:grant-permission ["AllUsers" "Read"]
to put-object
@ps The URIs... as far as I remember , the public ones you have to construct yourself - the follow the same pattern as described here: https://docs.aws.amazon.com/general/latest/gr/s3.html For pre-signed, limited access urls (which are usually better solution than making objects public) you have to use the S3 SDK directly by using the GeneratePresignedUrlRequest
class