Update requirements.txt with latest OSS package with AuthV4 support (#4425)
This commit is contained in:
parent
40bc936739
commit
f32bba6531
2 changed files with 3 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ class ToolFileManager:
|
|||
"""
|
||||
extension = guess_extension(mimetype) or '.bin'
|
||||
unique_name = uuid4().hex
|
||||
filename = f"/tools/{tenant_id}/{unique_name}{extension}"
|
||||
filename = f"tools/{tenant_id}/{unique_name}{extension}"
|
||||
storage.save(filename, file_binary)
|
||||
|
||||
tool_file = ToolFile(user_id=user_id, tenant_id=tenant_id,
|
||||
|
|
@ -90,7 +90,7 @@ class ToolFileManager:
|
|||
mimetype = guess_type(file_url)[0] or 'octet/stream'
|
||||
extension = guess_extension(mimetype) or '.bin'
|
||||
unique_name = uuid4().hex
|
||||
filename = f"/tools/{tenant_id}/{unique_name}{extension}"
|
||||
filename = f"tools/{tenant_id}/{unique_name}{extension}"
|
||||
storage.save(filename, blob)
|
||||
|
||||
tool_file = ToolFile(user_id=user_id, tenant_id=tenant_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue