images =
consume_uploaded_entries(socket, :images, fn %{path: path}, entry ->
data = File.read!(path)
{:ok, %{data: data, client_type: entry.client_type, uuid: entry.uuid}}
end)
...
# Want to add images to the form as an argument here
case AshPhoenix.Form.submit(form) do
...
images =
consume_uploaded_entries(socket, :images, fn %{path: path}, entry ->
data = File.read!(path)
{:ok, %{data: data, client_type: entry.client_type, uuid: entry.uuid}}
end)
...
# Want to add images to the form as an argument here
case AshPhoenix.Form.submit(form) do
...