diff --git a/admin/tools/upload_image.php b/admin/tools/upload_image.php index 8bea12e0..be39b9ed 100644 --- a/admin/tools/upload_image.php +++ b/admin/tools/upload_image.php @@ -15,7 +15,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') { return; } -$imageFolder = USER . 'image_uploads/'; +$imageFolder = BASE . 'images/editor'; reset ($_FILES); $temp = current($_FILES); @@ -43,7 +43,7 @@ if (is_uploaded_file($temp['tmp_name'])) { move_uploaded_file($temp['tmp_name'], $fileToWrite); - $returnPathToImage = BASE_URL . 'user/image_uploads/' . $randomName; + $returnPathToImage = BASE_URL . 'images/editor/' . $randomName; echo json_encode(['location' => $returnPathToImage]); } else { // Notify editor that the upload failed diff --git a/common.php b/common.php index 076341a7..1874b15f 100644 --- a/common.php +++ b/common.php @@ -67,7 +67,6 @@ const PLUGINS = BASE . 'plugins/'; const TEMPLATES = BASE . 'templates/'; const TOOLS = BASE . 'tools/'; const VENDOR = BASE . 'vendor/'; -const USER = BASE . 'user/'; // menu categories const MENU_CATEGORY_NEWS = 1; diff --git a/images/editor/index.html b/images/editor/index.html new file mode 100644 index 00000000..e69de29b