mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 01:09:21 +02:00
Just save images into images/editor
This commit is contained in:
parent
dd6581f7f7
commit
708aa2d72f
@ -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
|
||||
|
@ -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;
|
||||
|
0
images/editor/index.html
Normal file
0
images/editor/index.html
Normal file
Loading…
x
Reference in New Issue
Block a user