PhoenixKit.Modules.Storage.Providers.Local (phoenix_kit v2.29.1)

Copy Markdown View Source

Local filesystem storage provider.

Stores files on the local filesystem using the configured endpoint path. Suitable for development, testing, and single-server deployments.

Summary

Functions

The bucket's directory as an absolute path. A relative endpoint (the default is priv/media) is relative to the directory the application started in, not to the current one: the working directory is VM-wide, and in development Phoenix's code reloader switches it into each path dependency while it recompiles — a relative read or write during that window lands in the dependency's directory.

Functions

root(bucket)

@spec root(map()) :: String.t()

The bucket's directory as an absolute path. A relative endpoint (the default is priv/media) is relative to the directory the application started in, not to the current one: the working directory is VM-wide, and in development Phoenix's code reloader switches it into each path dependency while it recompiles — a relative read or write during that window lands in the dependency's directory.