<%!-- 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 --%>
<%!-- 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 %>