ueditor custom modify the image upload path
The ueditor editor developed by Baidu is very easy to use. When we upload images, a directory will be created in our project and path by default: ueditor/php/upload/image
And rename the image we uploaded and save it to this folder
In many cases, our projects have independent storage paths for static resources such as pictures
At this time, we need to customize the path where the Baidu editor ueditor saves the picture.
So where do you modify this path?
Find the ueditor directory in our project (note: the ueditor directory here is the plug-in directory)
Find the ueditor/php/config.json file and open it
Find the configuration item: imagePathFormat
The value of this configuration item is the path where the file you upload is saved
Just change this configuration item to the value you need.