VUE2.0 integrated Baidu UE Editor, upload image Error!!!

Source: Internet
Author: User

I configure this side, the interface loading, text input is not a problem, that is, uploading pictures will have a problem

This picture, the left red box is the directory structure, the right red box is a variety of online tutorials to give the first path configuration, right,

The following is the Green server interface configuration? I'm not too sure about this, but the backstage interface where I upload pictures is just the way it is.

This is the only configuration I have made in Ueditor.config.js two!

Then another configuration file Php/config.json also has the corresponding modification, as follows:

Right red box, is I think the need to modify the path it ~ Of course, this is only related to the image upload;

Imageurlprefix and Imagepathformat These two configurations are the focus, I think so, but this set of things do not understand, I can only guess the configuration of these two things

Imageurlperfix This is a picture prefix, I understand this prefix, the interface returned in the background just returned a picture URL of the second half, the first half is the prefix, then we now back end of the sentiment

The following conditions:

See no, this is the back of the background data,, supposedly, if the configuration is normal, Baidu UE will be based on this data plus the configured path, in your front-end editor Display this picture, is not?

So for this configuration I think is the Imageurlperfix field, this thing set above the picture I have given; okay, that's what I understand, but the front desk shows it.

So I was depressed for a long time, do not know how to configure.

Another important configuration item is this:

This thing is said to upload the saved path, I think I do not need to save, I just upload it just fine so this piece of things I did not configure

    • September 28 question
    • Comments
    • Invitation to answer
    • Edit
1 answersthe answer is helpful to the person, has the reference value0 The answer is no help, it's the wrong answer, irrelevantly replying .


If you install the source package by default, basically do not have to modify, because Vue and PHP may be two different ports, it is necessary to change the URL of the PHP file to access the port number.
Upload finally Go is action_upload.php and Uploader.class.php these two files, you can set a breakpoint to debug multiple places.
Generally the path is correct, there is write permission, there is not much problem.

VUE2.0 integrated Baidu UE Editor, upload image Error!!!

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.