Baidu Editor in the server top path to resolve the upload image to create a directory failure method (thinkphp)

Source: Internet
Author: User

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 ; &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)

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.