feat(plugin): upload "files" in node output
This commit is contained in:
parent
f2c9362a8a
commit
df2f18eda9
@ -265,6 +265,11 @@ async def update_run_with_output(prompt_id, data):
|
||||
images = data.get('images', [])
|
||||
for image in images:
|
||||
await upload_file(prompt_id, image.get("filename"), subfolder=image.get("subfolder"), type=image.get("type", "image/png"))
|
||||
|
||||
files = data.get('files', [])
|
||||
for file in files:
|
||||
await upload_file(prompt_id, file.get("filename"), subfolder=file.get("subfolder"), type=file.get("type", "image/png"))
|
||||
|
||||
except Exception as e:
|
||||
error_type = type(e).__name__
|
||||
stack_trace = traceback.format_exc().strip()
|
||||
|
Loading…
x
Reference in New Issue
Block a user