fix: storage.load() → storage.read() for attachment download
This commit is contained in:
@@ -103,7 +103,7 @@ async def download_attachment(
|
|||||||
from app.core.storage import get_storage_backend
|
from app.core.storage import get_storage_backend
|
||||||
storage = get_storage_backend()
|
storage = get_storage_backend()
|
||||||
try:
|
try:
|
||||||
file_bytes = await storage.load(storage_path)
|
file_bytes = await storage.read(storage_path)
|
||||||
except Exception:
|
except Exception:
|
||||||
raise HTTPException(404, detail={"detail": "File not found in storage", "code": "file_missing"})
|
raise HTTPException(404, detail={"detail": "File not found in storage", "code": "file_missing"})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user