Mode 0644 don't work in preprod so we use 0777

This commit is contained in:
Michael RICOIS 2017-09-06 15:47:35 +02:00
parent 218169e21f
commit 84d72f07b1

View File

@ -97,7 +97,7 @@ class AdminAntadisFilesController extends ModuleAdminController
$pathUpload = _PS_UPLOAD_DIR_.'customer/'.$id_customer;
}
if (!file_exists($pathUpload)) {
mkdir($pathUpload, 0644, true);
mkdir($pathUpload, 0777, true);
}
$isUpload = move_uploaded_file($file['tmp_name'], $pathUpload.'/'.$file['name']);