Transmit v0.1.0 Transmit View Source

Plug for handling the creation of presigned urls for direct client-side uploading

Setup

In your router, add the following:

defmodule MyAppWeb.Router do
  ...

  forward("/signer", to: Transmit, signer: Transmit.S3Signer, bucket: "images", path: "uploads")

  ...

This makes it so that requests to /signer will be routed to the Transmit plug. The signer that will be used is the Transmit.S3Signer for creating S3 presigned URLs. The bucket and path options are specific to Transmit.S3Signer which will use them to create URLs that point to the images bucket under the path uploads

For more setup information for S3 signing, make sure to check the Transmit.S3Signer documentation

Different signers can be used by implementing the Transmit.Signer behaviour

Link to this section Summary

Link to this section Functions