How to let users upload images to S3 with Biff
UPDATE: Biff now includes a com.biffweb/s3-request function that can be used with the examples below, with some slight modifications.
Add the provided s3.clj
file to your project, and set the following keys in config.edn
and secrets.env
:
;; config.edn
:s3/origin "https://nyc3.digitaloceanspaces.com"
:s3/edge "https://example.nyc3.cdn.digitaloceanspaces.com"