From 8aa496b7730c2e1de455dc0d3c965fd8a3d29975 Mon Sep 17 00:00:00 2001 From: Bima42 Date: Mon, 3 Nov 2025 19:03:19 +0100 Subject: [PATCH] fix: clear input value after uploading file in dropzone --- apps/dokploy/components/ui/dropzone.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/dokploy/components/ui/dropzone.tsx b/apps/dokploy/components/ui/dropzone.tsx index 34fc270c1..b7546d73c 100644 --- a/apps/dokploy/components/ui/dropzone.tsx +++ b/apps/dokploy/components/ui/dropzone.tsx @@ -67,9 +67,10 @@ export const Dropzone = React.forwardRef( ref={inputRef} type="file" className={cn("hidden", className)} - onChange={(e: ChangeEvent) => - onChange(e.target.files) - } + onChange={(e: ChangeEvent) => { + onChange(e.target.files); + e.target.value = ""; + }} />