From aea8af55fba4f58cba37bcf99f46735355a49581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Tue, 17 Sep 2024 01:14:51 +0700 Subject: [PATCH] Show progress in file input upload --- lib/livebook_web/live/output/file_input_component.ex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/livebook_web/live/output/file_input_component.ex b/lib/livebook_web/live/output/file_input_component.ex index d3ca4173854f..e017a2b1bbaa 100644 --- a/lib/livebook_web/live/output/file_input_component.ex +++ b/lib/livebook_web/live/output/file_input_component.ex @@ -43,7 +43,7 @@ defmodule LivebookWeb.Output.FileInputComponent do ~H"""

ref}, socket) do + {:noreply, cancel_upload(socket, :file, ref)} + end + defp handle_progress(:file, entry, socket) do if entry.done? do {file_ref, client_name} =