Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Leptune/ueditor

Repository files navigation

UEditor 集成 UPYUN 标准 API

基于 UEditor 1.4.3.1 PHP 版UPYUN PHP 标准 SDK 开发。

功能

  1. 单图和多图同时上传到 UPYUN
  2. 附件同时上传到 UPYUN
  3. 支持 log 记录

使用

下载后解压为 ueditor

修改文件 php/upyun.config.sample.phpphp/upyun.config.php,并配置:

<?php
$bucketname = ''; // 服务名称
$username = ''; // 操作员账号
$password = ''; // 操作员密码

修改文件 php/config.sample.jsonphp/config.json,并配置:

/* 上传图片配置项 */
......
"imageUrlPrefix": "", /* 图片访问路径前缀,UPYUN 域名配置,默认域名,如:http://服务名称.b0.upaiyun.com 或绑定域名,如:http://xxxx.xxxx.xxxx */
......
/* 上传文件配置 */
......
"fileUrlPrefix": "", /* 文件访问路径前缀,UPYUN 域名配置,默认域名,如:http://服务名称.b0.upaiyun.com 或绑定域名,如:http://xxxx.xxxx.xxxx */

说明:上传到 UPYUN 失败,可以查看 php/log.txt 文件里的详细错误信息。

About

Integrate UpYun's API to UEditor.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.9%
  • CSS 6.6%
  • HTML 5.3%
  • PHP 2.2%

AltStyle によって変換されたページ (->オリジナル) /