Skip to content

v0.3.0

Compare
Choose a tag to compare
@rzane rzane released this 24 Nov 23:31
· 55 commits to master since this release

Features

  • Delete files in bulk with FileStore.delete_all/2.
  • FileStore.get_signed_url/3 and FileStore.get_public_url/3 now support :content_type and :disposition options.
  • FileStore.Middleware.Logger can be used to log all operations
  • FileStore.Middleware.Errors can be used to return more useful error values
  • FileStore.Middleware.Prefix can be used to add a prefix to the key used in operations

Breaking changes

Creating your store

Previously, you'd initiate your store with FileStore.new/1:

FileStore.new(adapter: FileStore.Adapters.Foo, foo: "bar")

Now, you'll call new/1 on the adapter itself:

FileStore.Adapters.Foo.new(foo: "bar")

Options passed to URL functions

Previously, any options you passed to get_signed_url/3 and get_public_url/3 would be forwarded to the underlying adapter. That's no longer the case. Please file an issue if this library does not support an option that you need.

FileStore.Adapter is gone

If you made your own adapter by implementing the FileStore.Adapter behaviour, you'll need to make some changes. Adapters are now implemented as protocols.