Fix thumbnail upload problem when using Ueditor phpcms

Source: Internet
Author: User

/*  Front-end communication-related configuration, comments allow only multiline mode  */{    /*  upload picture configuration Items  */     "Imageactionname":  "Uploadimage", /*  perform the action name of the uploaded picture  */     " Imagefieldname ": " 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 the picture is compressed, the default is true */    " Imagecompressborder ": 1600, /*  picture compression longest edge limit  */    " Imageinsertalign ":   "None", /*  inserted picture floating mode  */     "Imageurlprefix":  "http://127.0.0.18" , /*  Image access Path prefix  */     "Imagepathformat":  "/ueditor/php/upload/image/{ Yyyy}{mm}{dd}/{yyyy}{mm}{dd}{hh}{ii}{ss}{rand:3} ",  /*  Upload save path, you can customize save path and file name format  */                                  /* {filename}  will be replaced with the original file name, configure this need to pay attention to Chinese garbled problem  */                                  /* {rand:6}  will be replaced by random number, followed by the number of digits of the random number  */                                  /* {time}  will replace the time stamp  */                                  /* {yyyy}  will replace the four-digit year  */                                  /* {yy}  will be replaced by two-digit year  */                                  /* {mm}  will replace the two-digit month  */                                  /* {dd}  will replace the two-digit date  */                                 /* {hh}  Will replace the two-hour  */                                 /* {ii}  will change to two-digit minutes  */                                  /* {ss}  will replace two-bit seconds  */                                 /*  illegal character  \  : * ?  " < > | */                                  /*  the body to see the online document:  fex.baidu.com/ueditor/#use-format_upload_ filename */    /*  Doodle Image upload configuration item  */     "Scrawlactionname":   "Uploadscrawl", &NBSP;/*&NThe name of the action name  */     "Scrawlfieldname":  "Upfile", /*  submitted for uploading graffiti  */     "Scrawlpathformat":  "/ueditor/php/upload/image/{yyyy}{mm}{dd}/{yyyy}{mm}{ Dd}{hh}{ii}{ss}{rand:3} ", /*  upload save path, you can customize save path and file name format  */    " Scrawlmaxsize ":  2048000, /*  Upload size limit, unit b */     "Scrawlurlprefix":  "/HTTP/ 127.0.0.18 ", /*  picture access Path prefix  */    " scrawlinsertalign ": " None ",     /*  Tools Upload  */     "Snapscreenactionname":  "Uploadimage",  /*  perform the uploaded action name  */     "Snapscreenpathformat":  "/ueditor/php/upload/ Image/{yyyy}{mm}{dd}/{yyyy}{mm}{dd}{hh}{ii}{ss}{rand:3} ", /*  upload save path, you can customize save path and file name format  */      "Snapscreenurlprefix":  "http://127.0.0.18", /*  image access Path prefix  */      "Snapscreeninsertalign": &NBSP; " None ", /*  inserted picture floating mode  */    /*  crawl remote picture configuration  */    " Catcherlocaldomain ":  [" 127.0.0.1 ", " localhost ", " img.baidu.com "],    " Catcheractionname ": " Catchimage ", /*  perform the action name to crawl the remote picture  */    " Catcherfieldname ": " source ", /*  submitted picture List form name  */    " Catcherpathformat ":   "/ueditor/php/upload/image/{yyyy}{mm}{dd}/{yyyy}{mm}{dd}{hh}{ii}{ss}{rand:3}", /*  Upload save path, You can customize save path and file name format  */     "Catcherurlprefix":  "http://127.0.0.18", /*  Picture access path prefix  */     "catchermaxsize": 2048000, /*  upload size limit, Unit b */      "Catcherallowfiles":  [". png",  ". jpg",  ". jpeg",  ". gif",  ". bmp"],  /*  Grab picture format display  */    /*  upload video configuration  */     " Videoactionname ": " Uploadvideo ",  /*  perform the action name of the uploaded video  */     "Videofieldname":  "Upfile", /*  Submitted video form name  */     "Videopathformat":  "/ueditor/php/upload/video/{yyyy}{mm}{dd}/{ Time}{rand:6} ", /*  upload save path, you can customize save path and file name format  */    " Videourlprefix ": " http://127.0.0.18 ", /*  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", /*  submitted file Form name  */      "Filepathformat":  "/ueditor/php/upload/file/{yyyy}{mm}{dd}/{time}{rand:6}", /*  Upload save path, You can customize save path and file name format  */     "Fileurlprefix":  "http://127.0.0.18", /*  File access path prefix  */     "filemaxsize": 51200000, /*  upload size limit, Unit B, default 50mb */      "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 pictures under a specified directory  */      "Imagemanageractionname":  "ListImage", /*  perform image management action name  */      "Imagemanagerlistpath":  "/ueditor/php/upload/image/", /*  Specify the directory to list the pictures  */      "Imagemanagerlistsize": 20, /*  the number of files per list  */     Imagemanagerurlprefix ": " http://127.0.0.18 ", /*  picture access path prefix  */    " Imagemanagerinsertalign ": " none ", /*  inserted picture floating way  */    " Imagemanagerallowfiles ":  [". png ", ". jpg ", ". jpeg ", ". gif ", ". bmp "], /*  List of file types  */    /*  list in the specified directoryFile  */     "Filemanageractionname":  "listfile", /*  perform file management action name   */     "Filemanagerlistpath":  "/ueditor/php/upload/file/", /*  Specify the directory to list the files  */     "Filemanagerurlprefix":  "http://127.0.0.18", /*  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",  ". bz2",  ". cab",  ". iso",         ". Doc",  ". docx",  ". xls",  . xlsx ", ". ppt ", ". pptx ", ". pdf ", ". txt ", ". MD ", ". xml "     ] /*  file types listed  */}

Ueditor/php/config.json Access path prefixes are written on it.

Fix thumbnail upload problem when using Ueditor phpcms

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.