From f363b7e8717ca1f7e9579ea261b05b6f938bf7d0 Mon Sep 17 00:00:00 2001 From: bennykok Date: Sun, 14 Apr 2024 00:24:21 +0800 Subject: [PATCH] fix: make sure to skip the temp file. --- custom_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_routes.py b/custom_routes.py index cfd2570..1cdfbde 100644 --- a/custom_routes.py +++ b/custom_routes.py @@ -916,8 +916,8 @@ async def handle_upload(prompt_id: str, data, key: str, content_type_key: str, d items = data.get(key, []) for item in items: # # Skipping temp files - # if item.get("type") == "temp": - # continue + if item.get("type") == "temp": + continue await upload_file( prompt_id, item.get("filename"),