Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
8e3d1cbf
Commit
8e3d1cbf
authored
May 10, 2023
by
comfyanonymous
Browse files
Fix bug when uploading image with the same name.
parent
d6dee8af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
server.py
server.py
+1
-0
No files found.
server.py
View file @
8e3d1cbf
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment