This commit is contained in:
Zelin Pu 2024-08-07 11:16:05 +08:00
parent 7f256fa283
commit 059b8ee07e

View File

@ -270,7 +270,7 @@ class PromptServer():
else:
with open(filepath, "wb") as f:
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})
else:
print("No image provided in the post data")