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.");