From 9b8531e06532bff70fc58c3d805f93b243f34af8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Castillo?= Date: Tue, 23 Jun 2026 17:23:06 -0300 Subject: [PATCH 1/2] fix: add onUploadStart prop to be called when a file started to beign upload MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Castillo --- src/components/inputs/upload-input-v3/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/inputs/upload-input-v3/index.js b/src/components/inputs/upload-input-v3/index.js index 134c8855..a027a3bf 100644 --- a/src/components/inputs/upload-input-v3/index.js +++ b/src/components/inputs/upload-input-v3/index.js @@ -40,6 +40,7 @@ const UploadInputV3 = ({ maxFiles = 1, timeOut, onUploadComplete, + onUploadStart = null, djsConfig, id, parallelChunkUploads = false, @@ -140,6 +141,7 @@ const UploadInputV3 = ({ const handleAddedFile = useCallback((file) => { setUploadingFiles(prev => [...prev, { name: file.name, size: file.size, progress: 0, complete: false }]); + if (onUploadStart) onUploadStart(file); }, []); const handleUploadProgress = useCallback((file, progress) => { From 0697857d4e83079a5067fde622aed5d6e509cbb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Castillo?= Date: Tue, 23 Jun 2026 17:35:25 -0300 Subject: [PATCH 2/2] fix: add onUploadStart to dependecy array of useCallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Castillo --- src/components/inputs/upload-input-v3/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/inputs/upload-input-v3/index.js b/src/components/inputs/upload-input-v3/index.js index a027a3bf..202134b3 100644 --- a/src/components/inputs/upload-input-v3/index.js +++ b/src/components/inputs/upload-input-v3/index.js @@ -142,7 +142,7 @@ const UploadInputV3 = ({ const handleAddedFile = useCallback((file) => { setUploadingFiles(prev => [...prev, { name: file.name, size: file.size, progress: 0, complete: false }]); if (onUploadStart) onUploadStart(file); - }, []); + }, [onUploadStart]); const handleUploadProgress = useCallback((file, progress) => { setUploadingFiles(prev => prev.map(f =>