From 6db2ece2ce538f1c7ed50a204b5380f700a8434b Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Thu, 25 Jun 2026 03:43:29 +0300 Subject: [PATCH] Update: 2026-06-25 03:43:29 --- backend/auth/syria/uploadImage.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/auth/syria/uploadImage.php b/backend/auth/syria/uploadImage.php index c094a5b..6fac716 100644 --- a/backend/auth/syria/uploadImage.php +++ b/backend/auth/syria/uploadImage.php @@ -5,7 +5,10 @@ // يخزّنها في مجلدات حسب الدولة: auth/uploads/{country}/ // ============================================================ -require_once __DIR__ . '/../../connect.php'; +// ملاحظة: نستخدم bootstrap.php مباشرة (بدون connect.php) لأن JWT +// registration (token_type: registration) لا يملك صلاحية connect.php +require_once __DIR__ . '/../../core/bootstrap.php'; +$con = Database::get('main'); uploadLog("🚀 [uploadImage.php] Document upload started.");