From: vincent@cubedesigners.com Date: Tue, 13 Jun 2017 15:20:15 +0000 (+0000) Subject: #1404 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fd36b5856a5c958746144b2af7990bdb34a2380d;p=cubeextranet.git #1404 --- diff --git a/inc/ws/Controlleur/class.ws.ajax.php b/inc/ws/Controlleur/class.ws.ajax.php index b05f4f745..cf79efd89 100644 --- a/inc/ws/Controlleur/class.ws.ajax.php +++ b/inc/ws/Controlleur/class.ws.ajax.php @@ -210,6 +210,7 @@ class wsAjax extends cubeAjax { $datas = array(); + $dir = WS_COLLECTIONS . '/apns/' . $_POST['collection_id']; if (!file_exists($dir)) { mkdir($dir, 0777, true); @@ -230,16 +231,18 @@ class wsAjax extends cubeAjax { if (!$_FILES[$t]['error']) { $ext = CubeIT_Files::getExtension($_FILES[$t]['name']); - move_uploaded_file($_FILES[$t]['tmp_name'], $wdir . '/' . $t . '.' . $ext); + //move_uploaded_file($_FILES[$t]['tmp_name'], $wdir . '/' . $t . '.' . $ext); $save['theme'][$t] = $t . '.' . $ext; if ($t == 'filesalt') { - CubeIT_Files::rmdir($wdir . '/filesalt'); - $unzip = CubeIT_Util_Zip::extract($wdir . '/' . $t . '.' . $ext, $wdir . '/filesalt'); + $d = $wdir . '/filesalt'; + CubeIT_Files::rmdir($d); + $unzip = CubeIT_Util_Zip::extract($wdir . '/' . $t . '.' . $ext, $d); } } } + foreach ($_POST['group'] as $gid => $group) { if ($gid && $gid == 'new_') { continue;