Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions backend/btrixcloud/storages.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,11 @@ async def get_s3_client(
) -> AsyncIterator[tuple[AIOS3Client, str, str]]:
"""context manager for s3 client"""
# parse bucket and key from standard endpoint_url
endpoint_url = storage.endpoint_url

if for_presign and storage.access_endpoint_url:
endpoint_url = storage.access_endpoint_url
else:
endpoint_url = storage.endpoint_url

if not endpoint_url.endswith("/"):
endpoint_url += "/"

Expand Down