fix: storage.load() → storage.read() for attachment download

This commit is contained in:
Agent Zero
2026-07-29 17:55:33 +02:00
parent 8322adb73f
commit 5e29b50bcc
+1 -1
View File
@@ -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"})