Umeditor upload image under TP success, preview failed

Source: Internet
Author: User

I'm tp3.2. The class of pictures processed when uploading an editor picture is made with the imagUp.class.php of the UM itself,

Put the UMeditor1.2.2 under the shop/public/statics/.

Image display when uploading images

Use the Bug tool to view the display picture path less shop (project Root path)

You need to modify the UM configuration file umeditor.config.php

Modified, ImagePath: '/shop/upload/image/umeditor/'

<?php window. Umeditor_config = {//        add a path to the editor instance, this cannot be commented        //    /shop/public/statics/umeditor1_2_2/        umeditor_home_ Url:url        //Image upload Configuration area   /shop/public/statics/umeditor1_2_2/php/imageup.php        , imageurl:url+ "php/ imageup.php "             //image upload submit address        , ImagePath: '/shop/upload/image/umeditor/'                     //image correction address, reference to Fixedimagepath, If you have special needs, you can configure it yourself     (here you can see the path to the file preview and the imageup.php $path is: /.. /.. /.. /upload/image/umeditor/)        , Imagefieldname: "Upfile"                   //Image Data key, if modified here, you need to modify the corresponding parameters in the background file}?>

Umeditor upload image under TP success, preview failed

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.