stavro / arc

:paperclip: Flexible file upload and attachment library for Elixir
1.16k stars 210 forks source link

Generate urls from ex_aws config #304

Closed aaronrenner closed 3 months ago

aaronrenner commented 3 months ago

This PR makes it so arc returns the default upload url based on what's provided by the ex_aws_config/0 callback. This makes it so arc can be be used with other s3 compatible services like localstack.

The code itself was adapted from ex_aws_s3's presigned url code: