From 8e3d1cbf3b8488b319675f952e1a868aa78f1161 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Wed, 10 May 2023 01:45:27 -0400 Subject: [PATCH] Fix bug when uploading image with the same name. --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index b6ac7d483..911f6a614 100644 --- a/server.py +++ b/server.py @@ -151,6 +151,7 @@ class PromptServer(): i = 1 while os.path.exists(filepath): filename = f"{split[0]} ({i}){split[1]}" + filepath = os.path.join(full_output_folder, filename) i += 1 if image_save_function is not None: