Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix bug when uploading image with the same name.

comfyanonymous8e3d1cbf3b84
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: