Ueditor1.4.3 --- modify the path of the uploaded image in php

Source: Internet
Author: User

Ueditor1.4.3 --- modify the path of the uploaded image in php

Find the php/config. json file in the ueditor file directory and modify it.

My goal is to modify the upload directory to the uploadfile directory under the root directory of the website. I modified the directory in this way and I can see the Code directly... the Code marked above is the code I modified.


/* Configuration related to frontend and backend communication. Only multiline mode */{/* upload image configuration item */"imageActionName": "uploadimage ", /* action name of the image to be uploaded */"imageFieldName": "upfile",/* Name of the submitted image form */"imageMaxSize": 2048000,/* upload size limit, unit B */"imageAllowFiles ":[". png ",". jpg ",". jpeg ",". gif ",". bmp "],/* upload image format display */" imageCompressEnable ": true,/* Whether to compress the image. The default value is true */" imageCompressBorder ": 1600, /* maximum side limit of Image Compression */"imageInsertAlign": "none",/* floating mode of the inserted image */ "ImageUrlPrefix": "",/* prefix of the image access path */"imagePathFormat ": "/uploadfile/image/{yyyy} {mm} {dd}/{time} {rand: 6}",/* upload and save path, you can customize the storage path and file name format * // * {filename} will be replaced with the original file name. to configure this, pay attention to Chinese garbled characters * // * {rand: 6} is replaced with a random number, the following number is the number of digits of the random number * // * {time} will be replaced with the timestamp * // * {yyyy} will be replaced with the four-digit year * // * {yy} Will replace the two-digit year * // * {mm} with the two-digit month * // * {dd} with the two-digit date * // * {hh} with the two-hour * // * {ii} will be replaced with two minutes * // * {ss} will be replaced with two seconds * // * invalid characters \: *? "<> | * // * For more information, see the online documentation fex.baidu.com/ueditor/#use-format_upload_filename */* graffiti Image Upload configuration item */" scrawlActionName ":" uploadscrawl ", /* Name of the action for uploading graffiti */"scrawlFieldName": "upfile",/* Name of the submitted image form */"scrawlPathFormat ": "/uploadfile/image/{yyyy} {mm} {dd}/{time} {rand: 6}",/* upload and save path, you can customize the storage path and file name format */"scrawlMaxSize": 2048000,/* upload size limit, in the unit of B */"scrawlUrlPrefix ":"", /* image access path prefix */"scrawlInsertAlign": "none",/* tool upload */"snapscreenActionName": "uploadimage ", /* Name of the action to be uploaded */"snapscreenPathFormat": "/uploadfile/image/{yyyy} {mm} {dd}/{time} {rand: 6 }", /* upload and save path. You can customize the Save path and file name format */"snapscreenUrlPrefix": "",/* image access path prefix */"snapscreenInsertAlign": "none ", /* floating mode of inserted images * // * capture remote image configuration */"catcherLocalDomain": ["127.0.0.1", "localhost", "img.baidu.com"], "catcherActionName ": "catchimage",/* action name for capturing remote images */"catcherFieldName": "source",/* Name of the submitted image list form */"catcherPathFormat ": "/uploadfile/image/{yyyy} {mm} {dd}/{time} {rand: 6}",/* upload and save path, you can customize the storage path and file name format */"catcherUrlPrefix": "",/* image access path prefix */"catcherMaxSize": 2048000,/* upload size limit, unit B */"catcherAllowFiles ":[". png ",". jpg ",". jpeg ",". gif ",". bmp "],/* capture image format display * // * upload video configuration */" videoActionName ":" uploadvideo ", /* action name of the video to be uploaded */"videoFieldName": "upfile",/* Name of the submitted video form */"videoPathFormat ": "/uploadfile/video/{yyyy} {mm} {dd}/{time} {rand: 6}",/* upload and save path, you can customize the storage path and file name format */"videoUrlPrefix": "",/* the prefix of the video access path */"videoMaxSize": 102400000,/* the upload size limit, in the unit of B, default 100 MB */"videoAllowFiles ":[". flv ",". swf ",". mkv ",". avi ",". rm ",". rmvb ",". mpeg ",". mpg ",". ogg ",". ogv ",". mov ",". wmv ",". mp4 ",". webm ",". mp3 ",". wav ",". mid "],/* upload video format display * // * Upload File configuration */" fileActionName ":" uploadfile ",/* controller, the action name of the video to be uploaded */"fileFieldName": "upfile",/* The Name Of The submitted file form */"filePathFormat ": "/uploadfile/file/{yyyy} {mm} {dd}/{time} {rand: 6}",/* upload and save path, you can customize the storage path and file name format */"fileUrlPrefix": "",/* file access path prefix */"fileMaxSize": 51200000,/* upload size limit, in the unit of B, the default value is 50 MB */"fileAllowFiles ":[". png ",". jpg ",". jpeg ",". gif ",". bmp ",". flv ",". swf ",". mkv ",". avi ",". rm ",". rmvb ",". mpeg ",". mpg ",". ogg ",". ogv ",". mov ",". wmv ",". mp4 ",". webm ",". mp3 ",". wav ",". mid ",". rar ",". zip ",". tar ",". gz ",". 7z ",". bz2 ",". cab ",". iso ",". doc ",". docx ",". xls ",". xlsx ",". ppt ",". pptx ",". pdf ",". txt ",". md ",". xml "],/* Upload File Format display * // * List images in the specified directory */" imageManagerActionName ":" listimage ", /* Name of the action for image management */"imageManagerListPath": "/uploadfile/image/",/* specify the directory of the image to be listed */"imageManagerListSize": 20, /* Number of files listed each time */"imageManagerUrlPrefix": "",/* image access path prefix */"imageManagerInsertAlign": "none ", /* floating mode of the inserted image */"imageManagerAllowFiles ":[". png ",". jpg ",". jpeg ",". gif ",". bmp "],/* file types listed * // * List Files in the specified directory */" fileManagerActionName ":" listfile ", /* action name for executing file management */"fileManagerListPath": "/uploadfile/file/",/* specify the directory of the file to be listed */"fileManagerUrlPrefix ":"", /* file access path prefix */"fileManagerListSize": 20,/* Number of files listed each time */"fileManagerAllowFiles ":[". png ",". jpg ",". jpeg ",". gif ",". bmp ",". flv ",". swf ",". mkv ",". avi ",". rm ",". rmvb ",". mpeg ",". mpg ",". ogg ",". ogv ",". mov ",". wmv ",". mp4 ",". webm ",". mp3 ",". wav ",". mid ",". rar ",". zip ",". tar ",". gz ",". 7z ",". bz2 ",". cab ",". iso ",". doc ",". docx ",". xls ",". xlsx ",". ppt ",". pptx ",". pdf ",". txt ",". md ",". xml "]/* file types listed */}

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.