fix: make sure to skip the temp file.

This commit is contained in:
bennykok 2024-04-14 00:24:21 +08:00
parent 1b25cfdd6c
commit f363b7e871

View File

@ -916,8 +916,8 @@ async def handle_upload(prompt_id: str, data, key: str, content_type_key: str, d
items = data.get(key, []) items = data.get(key, [])
for item in items: for item in items:
# # Skipping temp files # # Skipping temp files
# if item.get("type") == "temp": if item.get("type") == "temp":
# continue continue
await upload_file( await upload_file(
prompt_id, prompt_id,
item.get("filename"), item.get("filename"),