search

Home  >  Q&A  >  body text

javascript - vue-editor uploads images. The path is too long.

I didn’t use Baidu’s rich text

I found a lot about vue-editor and they all handle uploaded images like this

But when I passed it to the background like this, the background couldn't process it and gave me 500 directly

What to do, all the great gods

淡淡烟草味淡淡烟草味2695 days ago885

reply all(2)I'll reply

  • 迷茫

    迷茫2017-07-05 11:04:59

    ...This is not a path problem...but the rich text editor converts your image to base64 encoding, and then stores the html tag and your text together

    Do you want to save jpg/png/gif files to the database?

    reply
    0
  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-07-05 11:04:59

    This converts the image to base64. Because the background limits the length of this field, an error is reported. So don’t convert it to base64 before uploading

    reply
    0
  • Cancelreply