ueditor1.4.3---PHP version upload image path changes
Locate the Php/config.json file in the Ueditor file directory to modify it
My goal is to change the upload directory to the site root directory under the UploadFile directory, I modified this, directly read the code to understand ... The logo above is the code I changed.
/* Front-end communication-related configuration, comments allow only multiline */{/* Upload picture Configuration item */"Imageactionname": "Uploadimage",/* Perform the action name of the upload picture */"Imagefieldna Me ":" Upfile ",/* submitted picture form name */" imagemaxsize ": 2048000,/* Upload size limit, Unit B */" imageallowfiles ": [". png ",". jpg ",". jpeg " , ". gif", ". bmp"],/* Upload picture format display */"imagecompressenable": true,/* whether to compress the picture, the default is True */"Imagecompressborder": 1600,/* Picture compression longest edge limit */"imageinsertalign": "None",/* Insert Picture floating way */"Imageurlprefix": "",/* Picture access Path prefix */"Imagepathformat": "/uploadfile/image/{yyyy}{mm}{dd}/{time}{rand:6}",/* Upload save path, you can customize save path and file name format */ /* {filename} will be replaced with the original file name, configure this to be aware of the Chinese garbled problem */* * {rand:6} will be replaced by random Number, the number following is the number of digits of the random number */*/*/* {time} will be replaced by timestamp */* * {YYYY} will be replaced by four-bit year */ /* {YY} will be replaced by two-bit year */* * {mm} will be replaced with two-digit month */ /* {DD} will be replaced with two-bit date */*/*/*////*/* two-hour */*/* {II} Replaced with two-bit minutes////////* For two-bit seconds////* Illegal characters \: *? "< > | */* with body to see the online document: fex.baidu.com/ueditor/#use-format_upload_filename */* Doodle Picture Upload configuration item */ "Scrawlactionname": "Uploadscrawl",/* Perform the action name of the upload doodle */"Scrawlfieldname": "Upfile",/* submitted picture form name */"Scrawlpathformat": "/uploadfile/image/{yyyy}{mm}{dd}/{time}{rand:6}",/* Upload save path, you can customize save path and file name format */"Scrawlmaxsize": 2048000,/* Upload size limit, Unit B */"Scrawlurlprefix": "",/* Image access Path prefix */"scrawlinsertalign": "None",/* Tool upload */"snapscreenactionname": "Uploadimage",/* Execute the Uploaded action name */"Snapscreenpathformat": "/uploadfile/image/{yyyy}{mm}{dd}/{time}{rand:6}",/* Upload save path, you can customize save path and file name format */"Snapscreenurlprefix": "",/* Image access Path prefix */"snapscreeninsertalign": "None",/* Insert Picture Floating mode */* Crawl remote Picture configuration */"Catche Rlocaldomain ": [" 127.0.0.1 "," localhost "," img.baidu.com "]," catcheractionname ":" Catchimage ",/* Execute the action name to fetch the remote picture */ "Catcherfieldname": "Source",/* Picture List Form name submitted */"Catcherpathformat": "/uploadfile/image/{yyyy}{mm}{dd}/{time}{rand:6}",/* Upload save path, you can customize save path and file name format */"Catcherurlprefix": "",/* Image access Path prefix */"catchermaxsize": 2048000,/* Upload size limit, Unit B */"catcherallowfiles": [". png", ". PG ",". jpeg ",". gif ",". bmp "],/* FETCH picture format display */* Upload video Configuration */" Videoactionname ":" Uploadvideo ",/* * Execute the action name of the uploaded video */ "Videofieldname": "Upfile",/* Video Form name submitted */"Videopathformat": "/uploadfile/video/{yyyy}{mm}{dd}/{time}{rand:6}",/* Upload save path, you can customize save path and file name format */"Videourlprefix": "",/* Video access Path prefix */"videomaxsize": 102400000,/* Upload size limit, Unit B, default 100MB */"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, execute the action name of the uploaded video */"Filefieldname": "Upfile",/* file Form name submitted */"Filepathformat": "/uploadfile/file/{yyyy}{mm}{dd}/{time}{rand:6}",/* Upload save path, you can customize save path and file name format */"Fileurlprefix": "",/* File access Path prefix */"filemaxsize": 51200000,/* Upload size limit, Unit B, default 50MB */"fileallowfiles": [". pn G ",". 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 the pictures under the specified directory */"Imagemanageractionname": "ListImage",/* Perform picture management action name */"Imagemanagerlistpath": "/uploadfile/image/",/* Specify the directory to list the pictures */"Imagemanagerlistsize": 20,/* Number of files per list */"Imagemanagerurlprefix": "",/* Picture access Path prefix */"imagemanagerinsertalign": "N One ",/* * Insert the picture floating way */" imagemanagerallowfiles ": [". png ",". jpg ",". jpeg ",". gif ",". bmp "],/* File types listed */* list the specified directory FILE */"Filemanageractionname": "ListFile",/* Perform file management action name */"Filemanagerlistpath": "/uploadfile/file/",/* Specifies the directory to list the files */"Filemanagerurlprefix": "",/* File access Path prefix */"filemanagerlistsize": 20,/* Number of files per list */"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", ". B Z2 ",". Cab ",". iso ",". Doc ",". docx ",". xls ",". xlsx ",". ppt ",". pptx ",". pdf ",". txt ",". MD ",". xml ",". Type */}
http://www.bkjia.com/PHPjc/900029.html www.bkjia.com true http://www.bkjia.com/PHPjc/900029.html techarticle ueditor1.4.3---PHP version upload image path changes in the Ueditor file directory found Php/config.json file to modify my purpose is to change the upload directory to the site root directory ...