search

Home  >  Q&A  >  body text

Rich text editor - wangeditor+plupload+php uploads local images, and the images are loaded as usual

The code is the code from the official wangeditor document. There is no problem in uploading network images, but there is no way to load local images.
< /p>

There is no problem with uploading screenshots and pasting images to the upload page, but there is an error in the display of locally uploaded images. After looking at the src of the local image uploaded by the html code, it looks like this

The code for the php code to return the path is only like this. Is the failure to load local images related to the path in this code? How to solve this? Thank you~~

PHP中文网PHP中文网2799 days ago716

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 13:04:17

    It should be a path problem. Don’t use absolute paths, use relative paths, that is, ./ or ./././.

    reply
    0
  • Cancelreply