We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72e9520 commit 0ce1d9aCopy full SHA for 0ce1d9a
backend/onyx/file_store/file_store.py
@@ -222,6 +222,8 @@ def _get_s3_key(self, file_name: str) -> str:
222
if len(file_name) < max_file_name_length:
223
return "/".join(prefix_and_tenant_parts + [file_name])
224
225
+ logger.info(f"File name is too long: {file_name}. Truncating.")
226
+
227
# For long file names, use a hash-based approach to ensure uniqueness
228
file_hash = hashlib.sha256(file_name.encode("utf-8")).hexdigest()
229
# Use first part of original name + hash to maintain some readability
0 commit comments