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
Link to this function
base_url()
The URL prefix for the file key.
Examples
iex> Upload.Adapters.Local.base_url()
"/uploads"
Link to this function
storage_path()
Path where files are stored. Defaults to priv/static/uploads
.
Examples
iex> Upload.Adapters.Local.storage_path()
"priv/static/uploads"