mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-12 20:37:04 +08:00
fix
This commit is contained in:
parent
7f256fa283
commit
059b8ee07e
@ -270,7 +270,7 @@ class PromptServer():
|
|||||||
else:
|
else:
|
||||||
with open(filepath, "wb") as f:
|
with open(filepath, "wb") as f:
|
||||||
print(f"Saving raw file to: {filepath}")
|
print(f"Saving raw file to: {filepath}")
|
||||||
f.write(file_content.read())
|
f.write(file_content)
|
||||||
return web.json_response({"name": filename, "subfolder": subfolder, "type": image_upload_type})
|
return web.json_response({"name": filename, "subfolder": subfolder, "type": image_upload_type})
|
||||||
else:
|
else:
|
||||||
print("No image provided in the post data")
|
print("No image provided in the post data")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user