View Source Bonfire.Files.Media (bonfire_umbrella v0.9.0-classic-beta.15)

Link to this section Summary

Functions

Delete an upload, removing any associated files.

Delete an upload, removing it from indexing, but the files remain available.

Link to this section Types

@type t() :: %Bonfire.Files.Media{
  __meta__: term(),
  controlled: term(),
  deleted_at: term(),
  file: term(),
  id: term(),
  media_type: term(),
  metadata: term(),
  path: term(),
  size: term(),
  url: term(),
  user: term(),
  user_id: term()
}

Link to this section Functions

Link to this function

hard_delete(module, media)

View Source
@spec hard_delete(atom(), t()) :: :ok | {:error, Ecto.Changeset.t()}

Delete an upload, removing any associated files.

Link to this function

insert(user, file, file_info, attrs)

View Source
@spec soft_delete(t()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}

Delete an upload, removing it from indexing, but the files remain available.

Link to this function

update_by(filters, updates)

View Source