From a4820aab18eb2010c488421f957e698baef3b668 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Mon, 15 Dec 2025 01:04:50 +0500 Subject: [PATCH] bruh....blame claude ._. wtf man --- app/routers/uploads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routers/uploads.py b/app/routers/uploads.py index eb1d390..03538a7 100644 --- a/app/routers/uploads.py +++ b/app/routers/uploads.py @@ -10,7 +10,8 @@ from app.models.user import User router = APIRouter(prefix="/api/uploads", tags=["uploads"]) # Storage directory for uploaded images -STORAGE_DIR = Path("/home/shihaam/git/sarlink/mapmaker/storage/images") +# Use relative path from project root to work in both dev and production +STORAGE_DIR = Path(__file__).resolve().parent.parent.parent / "storage" / "images" STORAGE_DIR.mkdir(parents=True, exist_ok=True) # Allowed image types