<.live_file_input upload={@uploads.avatar} class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg cursor-pointer bg-gray-50 dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400" />
<%!-- use phx-drop-target with the upload ref to enable file drag and drop --%>
<%= for entry <- @uploads.avatar.entries do %>
<.live_img_preview entry={entry} />
<%= entry.client_name %>
<%!-- entry.progress will update automatically for in-flight entries --%> <%= entry.progress %>% <%!-- a regular click event whose handler will invoke Phoenix.LiveView.cancel_upload/3 --%> <%!-- Phoenix.Component.upload_errors/2 returns a list of error atoms --%> <%= for err <- upload_errors(@uploads.avatar, entry) do %>

<%= error_to_string(err) %>

<% end %>
<% end %> <%!-- Phoenix.Component.upload_errors/1 returns a list of error atoms --%> <%= for err <- upload_errors(@uploads.avatar) do %>

<%= error_to_string(err) %>

<% end %>