Fix: Use absolute paths for all upload directories in processor files

- upload_profile_picture.php: Use absolute path for profile picture uploads, store relative path in DB
- submit_pop.php: Use absolute path for proof of payment uploads
- process_signature.php: Use absolute path for signature uploads, store relative path in DB
This commit is contained in:
twotalesanimation
2025-12-04 15:34:15 +02:00
parent 6fd3b8d082
commit 0c068eeb69
3 changed files with 14 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
exit;
}
$target_dir = "uploads/pop/";
$target_dir = $rootPath . "/src/processors/uploads/pop/";
$randomFilename = $validationResult['filename'];
$target_file = $target_dir . $randomFilename;