1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Fix bug when uploading image with the same name.

This commit is contained in:
comfyanonymous
2023-05-10 01:45:27 -04:00
parent d6dee8af1d
commit 8e3d1cbf3b

View File

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