Which master has been configured Baidu editor ueditor1.4.3 image upload path

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.