filenames

This commit is contained in:
phact 2025-09-09 00:13:16 -04:00
parent 2fbc852eb3
commit 132194d1f8
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ class LangflowConnectorService:
logger.debug("Uploading file to Langflow", filename=document.filename) logger.debug("Uploading file to Langflow", filename=document.filename)
content = document.content content = document.content
file_tuple = ( file_tuple = (
document.filename+suffix, document.filename.replace(" ", "_").replace("/", "_")+suffix,
content, content,
document.mimetype or "application/octet-stream", document.mimetype or "application/octet-stream",
) )

View file

@ -33,7 +33,7 @@ class LangflowFileService:
"[LF] Upload failed", "[LF] Upload failed",
status_code=resp.status_code, status_code=resp.status_code,
reason=resp.reason_phrase, reason=resp.reason_phrase,
body=resp.text[:500], body=resp.text,
) )
resp.raise_for_status() resp.raise_for_status()
return resp.json() return resp.json()