diff --git a/app/routes/attachments.py b/app/routes/attachments.py index f1eff78..4e22076 100644 --- a/app/routes/attachments.py +++ b/app/routes/attachments.py @@ -103,7 +103,7 @@ async def download_attachment( from app.core.storage import get_storage_backend storage = get_storage_backend() try: - file_bytes = await storage.load(storage_path) + file_bytes = await storage.read(storage_path) except Exception: raise HTTPException(404, detail={"detail": "File not found in storage", "code": "file_missing"})