fix: make sure to skip the temp file.
This commit is contained in:
+2
-2
@@ -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"),
|
||||||
|
|||||||
Reference in New Issue
Block a user