View Source Elph.Contents.MediaContent behaviour (elph v0.9.1)

This module provides macros and functions to enrich content types with media functionality. Right now uploading only handles elph media types. This has to be made configurable.

Link to this section Summary

Functions

Returns the path for uploaded media

Returns the path for a named file in the directory of an uploaded media

Link to this section Callbacks

Link to this callback

convert_media_in_background_tasks(term)

View Source
@callback convert_media_in_background_tasks(term()) :: term()
Link to this callback

create_changeset(term, term)

View Source
@callback create_changeset(term(), term()) :: term()
@callback create_thumbnails(term()) :: term()

Link to this section Functions

Link to this function

build_default_file_path(hash, extension)

View Source

Returns the path for uploaded media

Link to this function

build_file_path(hash, filename)

View Source

Returns the path for a named file in the directory of an uploaded media

Link to this macro

media_fields()

View Source (macro)