- When a file is cast to an Ecto field, it will be uploaded to a cache backend.
Because Ecto doesn't have callbacks, the step to save the files to the store
backend has to be called manually. See the documentation of
Exfile.Ecto.prepare_uploads/2
for more details. - The Exfile URI of a file, specifying both the backend and file ID, is now stored
in the Ecto field. Exfile recognizes vanilla file IDs, but this may be
removed by v1.0. (An Exfile URI looks like
exfile://[backend name]/[file id]
)
- Configurable timeout for refreshing backends (default is still 5 seconds)
- Implement TTL option for files in a FileSystem backend
- Relax Plug dependency constraint from
~> 1.0.0
to~> 1.0
- Fix
(CompileError) module Phoenix.HTML.Safe is not loaded and could not be found
whenphoenix_html
was not listed as a dependency.
ecto
andphoenix_html
are now optional dependencies
- The backend configuration has changed from a list containing a module name and
a map of options to a 2-element tuple containing a module name and a keyword
list. See
config/test.exs
for an example of what the new configuration looks like.