Baidu Editor Upload configuration instructions

Source: Internet
Author: User
Tags rar

{
/* Upload Picture configuration item */
"Imageactionname": "Uploadimage",/* Perform the action name of the upload picture */
"ImageUrl": "http://upload.qiniu.com/",
"Imagefieldname": "File",/* Submit 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 maximum edge limit */
"Imageinsertalign": "None",/* Insert Picture floating way */
"Imageurlprefix": "",/* Image access Path prefix */
"Imagepathformat": "/ueditor/php/upload/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 need to pay attention to the Chinese garbled problem */
/* {Rand:6} will be replaced by random number, followed by the number of digits of the random number */
/* {time} will be replaced with a timestamp */
/* {YYYY} will be replaced by four-digit year */
/* {YY} will be replaced by two-digit year */
/* {mm} will be replaced by two-digit month */
/* {DD} will be replaced with two-bit date */
/* {HH} will be replaced by two-bit hours */
/* {II} will be replaced by two-bit minutes */
/* {SS} will be replaced by two-bit seconds */
/* Illegal characters \: *? "< > | */
/* Body View online Documentation: 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": "/ueditor/php/upload/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",/* Perform the uploaded action name */
"Snapscreenpathformat": "/ueditor/php/upload/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 way */

/* Crawl Remote picture configuration */
"Catcherlocaldomain": ["127.0.0.1", "localhost", "img.baidu.com"],
"Catcheractionname": "Catchimage",/* Perform the action name to fetch the remote picture */
"Catcherfieldname": "Source",/* Picture List Form name submitted */
"Catcherpathformat": "/ueditor/php/upload/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", ". jpg", ". jpeg", ". gif", ". bmp"],/* Fetch image format display */

/* Upload the video configuration */
"Videoactionname": "Uploadvideo",/* Perform the action name of the uploaded video */
"Videofieldname": "File",/* The video form name submitted by */
"Videopathformat": "/ueditor/php/upload/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": "File",/* filename submitted 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": "",/* 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 the pictures under the specified directory */
"Imagemanageractionname": "ListImage",/* Perform picture management action name */
"Imagemanagerlistpath": "/ueditor/php/upload/image/",/* Specify the directory to list the pictures */
"Imagemanagerlistsize": 20,/* Number of files per list */
"Imagemanagerurlprefix": "",/* Image access Path prefix */
"Imagemanagerinsertalign": "None",/* Insert Picture floating way */
"Imagemanagerallowfiles": [". png", ". jpg", ". jpeg", ". gif", ". bmp"],/* File types listed */

/* List files under the specified directory */
"Filemanageractionname": "ListFile",/* Perform file management action name */
"Filemanagerlistpath": "/ueditor/php/upload/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", ". bz2", ". Cab", ". ISO",
". Doc", ". docx", ". xls", ". xlsx", ". ppt", ". pptx", ". pdf", ". txt", ". MD", ". xml"
]/* File types listed */

}[/mw_shl_code]

Again check the relevant configuration conf.php, the original problem here: //Configure $qiniu_access_key and $qiniu_secret_key for your own KEY
$QINIU _access_key= ' **************************************** ';
$QINIU _secret_key= ' **************************************** ';
Configuration bucket for your bucket
$BUCKET= "*****";

//Configure your domain access address
$HOST= "*****************************";

Before the pictures are uploaded to do not know who the seven Qiniu storage space went, their own to seven cattle registered an account, modified to their own relevant configuration, test function OK.

Baidu Editor Upload configuration instructions

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.