Commit 8e3d1cbf authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix bug when uploading image with the same name.

parent d6dee8af
...@@ -151,6 +151,7 @@ class PromptServer(): ...@@ -151,6 +151,7 @@ class PromptServer():
i = 1 i = 1
while os.path.exists(filepath): while os.path.exists(filepath):
filename = f"{split[0]} ({i}){split[1]}" filename = f"{split[0]} ({i}){split[1]}"
filepath = os.path.join(full_output_folder, filename)
i += 1 i += 1
if image_save_function is not None: if image_save_function is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment