Aurora. Uix. Templates. Basic. Renderers. UploadRenderer
(Aurora UIX v0.1.5-rc.2)
Copy Markdown
Renders a file upload field for a form.
Summary
Functions
Renders a file upload field.
Functions
@spec render(map()) :: Phoenix.LiveView.Rendered.t()
Renders a file upload field.
In show mode, renders a download button when a file exists, or a "No file" indicator otherwise. In edit mode, shows a download button when the entity already has a file. The file input and entry list are only rendered when the field is not readonly or disabled.