Upload.Adapters.Local (upload v0.3.0)

An Upload.Adapter that saves files to disk.

Configuration

config :upload, Upload.Adapters.Local,
  base_url: "/uploads", # optional
  storage_path: "priv/static/uploads" # optional

Link to this section Summary

Functions

The URL prefix for the file key.

Path where files are stored. Defaults to priv/static/uploads.

Link to this section Functions

The URL prefix for the file key.

Examples

iex> Upload.Adapters.Local.base_url()
"/uploads"

Path where files are stored. Defaults to priv/static/uploads.

Examples

iex> Upload.Adapters.Local.storage_path()
"priv/static/uploads"