WHO has configured Baidu editor ueditor1.4.3 image upload path?
Made a Baidu editor, and everything else is configured, is the picture path is uncertain, the picture always run to the folder outside the automatic creation of folders, which knows how to configure the specific, Baidu this has a place to pit dad.
------Solution--------------------
Upload the path, in the PHP file inside change, very convenient.
Put, you said that small picture, it is not easy, you have to change the editor source!
------Solution--------------------
Didn't you configure it in the Config.json?
His default value is
"Imagepathformat": "/ueditor/php/upload/image/{yyyy}{mm}{dd}/{time}{rand:6}"
Note that it is an absolute path, and should be an absolute path, because it is possible to use Ueditor in any directory on the site.
Change it to what you need.
------Solution--------------------
How did you change it?
I said I missed it, though it's an absolute path, but he's a URL-based
Which means the root of the site is his root.
But you have to make sure that your $_server[' document_root ' is valued and correct.
Because that's how he calculates it.
/**
* Get file Full path
* @return String
*/
Private Function GetFilePath ()
{
$fullname = $this->fullname;
$rootPath = $_server[' document_root ');
if (substr ($fullname, 0, 1)! = '/') {
$fullname = '/'. $fullname;
}
Return $rootPath. $fullname;
}
------Solution--------------------
I have met before, Imagepathformat ":"/uploadfiles/image/{yyyy}{mm}{dd}/{time}{rand:6} ",/This is your amendment right, you are in/ Uploadfiles Front plus you under the WWW file project name file is good. I guess he was automatically looking for a matching project file name if not, a Ueditor file will be generated in the periphery. You give it a try
------Solution--------------------
Very simple:
1. Give the complete error message
2. Give your configuration path
3. The path to the root directory of your website everywhere
You don't want to analyze, nature has someone to help you analyze