fix: switch blob sharding from uuid7 leading hex to random tail in attachments, project_files, and zip_service
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user