From 0fb22be97fd984b5d939e9ae3aa9b464591da748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Borbo=C3=ABn?= <ponsfrilus@gmail.com> Date: Mon, 11 Jan 2021 21:37:17 +0100 Subject: [PATCH] [fix] DIRECTORY_SEPARATOR --- canapEPFL/helpers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/canapEPFL/helpers.php b/canapEPFL/helpers.php index b252f65..6c162fc 100644 --- a/canapEPFL/helpers.php +++ b/canapEPFL/helpers.php @@ -218,7 +218,8 @@ function insertTrainings ($pdo, $trainings, $applicantId) { function insertFiles ($pdo, $files, $applicantId, $filesPath) { // insert files - $userPath = $filesPath . $applicantId . "\\"; + // $userPath = $filesPath . $applicantId . "\\"; WTF is that ??? + $userPath = $filesPath . $applicantId . DIRECTORY_SEPARATOR; $sqlreq = "INSERT INTO file (file_name, file_path, fk_applicant_id) VALUES (:file_name, :file_path, :fk_applicant_id)"; foreach ($files as $file) { -- GitLab