View Source Bonfire.Files.Definition behaviour (bonfire v0.3.5-classic-beta.10)

Extension to Waffle.Definition, adding support for checking against media types parsed through magic bytes instead of file extensions, which can be modified by the user.

You can still use validate/2 and other waffle callbacks.

Link to this section Summary

Link to this section Callbacks

@callback allowed_media_types() :: [binary()] | :all