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)
content = document.content
file_tuple = (
document.filename+suffix,
document.filename.replace(" ", "_").replace("/", "_")+suffix,
content,
document.mimetype or "application/octet-stream",
)

View file

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