1. Set folder permissions
2. Modification
/* 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": "/public/uploads/image/{yyyy}{mm}{dd}/{time}{rand:6}",/* Upload save path, you can customize save path and file name format */ /* * Filena Me} will be replaced with the original file name, configure this need to pay attention to Chinese garbled problem */ & nbsp /* {rand:6} will be replaced by random number, followed by the number of digits of the random number */ &NB Sp /* {time} will be replaced by timestamp */ &NBS P /* {YYYY} will be replaced by four-digit year */ &NB Sp /* {YY} will be replaced by two-digit year */ &NBSP ; /* {mm} will be replaced by two-digit month */ &NBSP ; /* {DD} will be replaced with two-digit date */ &NBSP ;   /* {HH} will be replaced by two-hour */ &NBSP ; /* {II} will be replaced by two-bit minutes */ &NBSP ; /* * {SS} will be replaced by two-bit seconds */ /* illegal characters \: *? "< > | */ /* with body watch line Documents on: fex.baidu.com/ueditor/#use-format_upload_filename */
3. Customize the folder to which you have read and write permissions
Null
Baidu Editor in the server top path to resolve the upload image to create a directory failure method (thinkphp)