Ueditor asp.net version changes the image storage path,
Objective: To place the locally uploaded Images in the Images/Upload folder under the same directory.
Modification steps:
1. In the ueditor. config. js file,
ImagePath: URL + "net /"
To:
ImagePath :"/"
2. In the Config. cs file under the net folder,
Public static string [] ImageSavePath = new string [] {"upload1", "upload2", "upload3 "};
To:
Public static string [] ImageSavePath = new string [] {"Images "};
3. The upFile method in the Uploader. cs file under the net folder,
Uploadpath = cxt. Server. MapPath (pathbase );
To:
Uploadpath = cxt. Server. MapPath ("~ /"+ Pathbase );
4,
Info = up. upFile (context, path + '/', filetype, size );
To:
Info = up. upFile (context, path + '/' + "Upload", filetype, size );
Configuration is a little troublesome. I don't know if there is any simpler method or whether it will affect the upload of other things. You can also share your experience with other friends.