fix upload: parse nested message.url, backup retries=1, connect.php auth

This commit is contained in:
Hamza-Ayed
2026-06-25 04:30:52 +03:00
parent 0b9e5dfa03
commit 75e4524329
3 changed files with 14 additions and 8 deletions

View File

@@ -5,10 +5,7 @@
// يخزّنها في مجلدات حسب الدولة: auth/uploads/{country}/
// ============================================================
// ملاحظة: نستخدم bootstrap.php مباشرة (بدون connect.php) لأن JWT
// registration (token_type: registration) لا يملك صلاحية connect.php
require_once __DIR__ . '/../../core/bootstrap.php';
$con = Database::get('main');
require_once __DIR__ . '/../../connect.php';
uploadLog("🚀 [uploadImage.php] Document upload started.");