fix: switch blob sharding from uuid7 leading hex to random tail in attachments, project_files, and zip_service

This commit is contained in:
2026-06-13 19:12:54 +00:00
parent 1294c95bed
commit 5c199474f3
5 changed files with 9 additions and 9 deletions
+2 -1
View File
@@ -122,7 +122,8 @@ def is_extension_allowed(ext):
def _directory_for(uid):
return f"{uid[:2]}/{uid[2:4]}"
tail = uid.replace("-", "")
return f"{tail[-2:]}/{tail[-4:-2]}"
def _detect_mime(file_bytes, original_filename):