diff --git a/backend/onyx/file_store/file_store.py b/backend/onyx/file_store/file_store.py index dad37b9b0df3..9d86602dd49e 100644 --- a/backend/onyx/file_store/file_store.py +++ b/backend/onyx/file_store/file_store.py @@ -92,7 +92,6 @@ def save_file( # The large objects in postgres are saved as special objects can be listed with # SELECT * FROM pg_largeobject_metadata; obj_id = create_populate_lobj(content=content, db_session=self.db_session) - print("uPLODING FILE TO FILE NAME", file_name) upsert_pgfilestore( file_name=file_name, display_name=display_name or file_name, diff --git a/backend/onyx/server/query_and_chat/chat_backend.py b/backend/onyx/server/query_and_chat/chat_backend.py index 6326fa65cba3..5be641a9604c 100644 --- a/backend/onyx/server/query_and_chat/chat_backend.py +++ b/backend/onyx/server/query_and_chat/chat_backend.py @@ -719,14 +719,11 @@ def upload_files_for_chat( file_content = file.file.read() # Read the file content - # if file_type == ChatFileType.IMAGE: - # file_content_io = file.file # NOTE: Image conversion to JPEG used to be enforced here. # This was removed to: # 1. Preserve original file content for downloads # 2. Maintain transparency in formats like PNG # 3. Ameliorate issue with file conversion - # else:/ file_content_io = io.BytesIO(file_content) new_content_type = file.content_type diff --git a/web/src/app/chat/lib.tsx b/web/src/app/chat/lib.tsx index 8db58c0d8e67..0a062ddd14e1 100644 --- a/web/src/app/chat/lib.tsx +++ b/web/src/app/chat/lib.tsx @@ -693,12 +693,10 @@ export async function uploadFilesForChat( method: "POST", body: formData, }); - alert("RESPONSE"); if (!response.ok) { return [[], `Failed to upload files - ${(await response.json()).detail}`]; } const responseJson = await response.json(); - alert(JSON.stringify(responseJson)); return [responseJson.files as FileDescriptor[], null]; }