Skip to content
Snippets Groups Projects
Commit 0fb22be9 authored by Nicolas Borboën's avatar Nicolas Borboën
Browse files

[fix] DIRECTORY_SEPARATOR

parent 7ee6a7b8
No related branches found
No related tags found
No related merge requests found
...@@ -218,7 +218,8 @@ function insertTrainings ($pdo, $trainings, $applicantId) { ...@@ -218,7 +218,8 @@ function insertTrainings ($pdo, $trainings, $applicantId) {
function insertFiles ($pdo, $files, $applicantId, $filesPath) { function insertFiles ($pdo, $files, $applicantId, $filesPath) {
// insert files // 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) $sqlreq = "INSERT INTO file (file_name, file_path, fk_applicant_id)
VALUES (:file_name, :file_path, :fk_applicant_id)"; VALUES (:file_name, :file_path, :fk_applicant_id)";
foreach ($files as $file) { foreach ($files as $file) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment