diff --git a/canapEPFL/helpers.php b/canapEPFL/helpers.php
index b252f6591ae49d7d4d6f8d5284aa64c520632175..6c162fc5ddc5305e4fbc7581382d6ccb70e4eaed 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) {