Spec-Zone.ru › Phoenix

Phoenix.LiveView.UploadConfig

Исходный код

Структура, представляющая загрузку.

Сводка

Типы

t()

Типы

t()Исходный код

@type t() :: %Phoenix.LiveView.UploadConfig{
  accept: list() | :any,
  acceptable_exts: MapSet.t(),
  acceptable_types: MapSet.t(),
  allowed?: boolean(),
  auto_upload?: boolean(),
  chunk_size: term(),
  chunk_timeout: term(),
  cid: :unregistered | nil | integer(),
  client_key: String.t(),
  entries: list(),
  entry_refs_to_metas: %{required(String.t()) => map()},
  entry_refs_to_pids: %{required(String.t()) => pid() | :unregistered | :done},
  errors: list(),
  external:
    (Phoenix.LiveView.UploadEntry.t(), Phoenix.LiveView.Socket.t() ->
       {:ok | :error, meta :: %{uploader: String.t()},
        Phoenix.LiveView.Socket.t()})
    | false,
  max_entries: pos_integer(),
  max_file_size: pos_integer(),
  name: atom() | String.t(),
  progress_event:
    (name :: atom() | String.t(),
     Phoenix.LiveView.UploadEntry.t(),
     Phoenix.LiveView.Socket.t() ->
       {:noreply, Phoenix.LiveView.Socket.t()})
    | nil,
  ref: String.t(),
  validator: (Phoenix.LiveView.UploadEntry.t() -> :ok | {:error, atom()}) | nil,
  writer: (name :: atom() | String.t(),
           Phoenix.LiveView.UploadEntry.t(),
           Phoenix.LiveView.Socket.t() ->
             {module(), term()})
}

Пакет Hex Предпросмотр Hex Просмотреть llms.txt Скачать версию ePub

Создано с помощью ExDoc (v0.40.3) для языка программирования Elixir

© 2014 Chris McCord
Licensed under the MIT License.
https://phoenix-live-view.hexdocs.pm/Phoenix.LiveView.UploadConfig.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API