Latest:
https://github.com/widuu/qiniu_ueditor_1.4.3
Ueditor Seven Cow cloud storage version
Note Older versions please view: https://github.com/widuu/qiniu_ueditor_1.4.3/tree/v1.0.0
About address Error
Please modify php/config.json
the parameters in the uploadQiniuUrl
and ChunkUploadQiniuUrl
, because the recent feedback region error more errors, give a simple example South China to modify the following
"uploadQiniuUrl" : "http://up-z2.qiniu.com/", /* 七牛上传地址 */"ChunkUploadQiniuUrl": "http://up-z2.qiniu.com", /* 分片上传创建的host地址 */
For specific areas of the upload URL, please see the official seven cattle storage area, address: https://developer.qiniu.com/kodo/manual/1671/region-endpoint
New Release Notes
Note: The new version is incompatible with the old version, the online integration tutorial is now the most old version, if you are viewing the site tutorial please click on the old version of the address to download the old version
New
- Use Ueditor's latest version of "1.4.3.3" version
- Refactoring the Upload method, you can switch the local upload and upload to seven cattle
- Added file deletion method, can delete files freely
- Support two-time development, add other upload methods such as
aliyun OSS
- Capture remote images with seven-cow
fetch
function
- New upload mode, [through balls | server upload], server upload is uploaded to the server by the temporary file upload to seven cattle
- Large video shards uploaded to seven kn [2017/7/17]
Repair
- Fixed simultaneous uploading of different folders with the same name file loss problem, repair multiple files at the same time upload lost problem
- Using
fetch
methods to crawl remote pictures
- Fixed 1000 files list for old version online management
- List paging through the seven cows
marker
to find the paging
Configuration
Configure two files, one is the configuration file php
config.php
and the configuration file, the Ueditor
config.json
default profile is in the php
directory.
Local upload Configuration
Modifyconfig.php
‘upload_type‘ => ‘local‘, // local 是上传到本地服务器‘orderby‘ => ‘asc‘, // 可选项 [desc|asc]列出文件的排序方式,此配置仅支持本地服务器‘root_path‘ => $_SERVER[‘DOCUMENT_ROOT‘], // 本地上传的根目录地址
Modifyconfig.json
"uploadType" : "local", /* qiniu|local 【qiniu】七牛云存储 【local】本地上传*/
Upload the file name and save the path can be modified config.json
in the configuration information, according to the official website configuration can be
Upload to seven cow cloud storage
Modifyconfig.php
‘upload_type‘ => ‘qiniu‘, // qiniu 上传到七牛云存储服务器/* 七牛云存储信息配置 */‘bucket‘ => ‘gitwiduu‘, // 七牛Bucket的名称‘host‘ => ‘http://gitwiduu.u.qiniudn.com‘, // 七牛绑定的域名‘access_key‘ => ‘KUN6xYZlOAtid2MjHm90-6VFY2M7HC90ijDH4uOR‘, // 七牛的access_key‘secret_key‘ => ‘D-K57TE5hPe3krexftxLWFKmL2xbQEKA-mtkrUfB‘, // 七牛的secret_key/* 上传配置 */‘timeout‘ => ‘3600‘, // 上传时间‘save_type‘ => ‘date‘, // 保存类型/* 水印设置 */‘use_water‘ => false, // 是否开启水印/* 七牛水印图片地址 */‘water_url‘ => ‘http://gitwiduu.u.qiniudn.com/ueditor-bg.png‘,/* 水印显示设置 */ ‘dissolve‘ => 50, // 水印透明度‘gravity‘ => ‘SouthEast‘, // 水印位置具体见文档图片说明和选项‘dx‘ => 10, //边距横向位置‘dy‘ => 10 //边距纵向位置
Modifyconfig.json
/* 七牛云存储配置start */"uploadType" : "qiniu", /* [qiniu]七牛云存储 */"qiniuUploadType" : "url", /* [url|php] url 通过URL直传,根据token来判断返回地址, php 通过php文件方式传输 */"uploadQiniuUrl" : "http://upload.qiniu.com/", /* 七牛上传地址 */"qiniuUploadPath" : "uploads/", /* 七牛上传的前缀 */"qiniuDatePath" : "mmdd", /* 自定义文件夹后的时间例如 uploads/0712 留空uploads/, 格式 yyyy == 2017 yy == 17 mm 月份 07 dd 日期 12 */"uploadSaveType" : "date", /* 保存文件的名称类型 */"getTokenActionName" : "getToken", /* 获取 Token 的方法 */
Large video multipart upload
Modifyconfig.json
"VideoBlockFileSize" : 4194304, /* 视频块大小,是每块4MB,所以这个不用修改 */"VideoChunkFileSize" : 2097152, /* 视频上传分块大小,建议是整数倍防止出错,列如1048576(1MB),524288(512KB)默认是2MB */"VideoChunkMaxSize" : 10485760, /* 视频文件超过多大来进行分片上传,现在默认是10MB */"ChunkUploadQiniuUrl": "http://upload.qiniu.com", /* 分块上传的首块上传域名为:上传到华东一区的域名为up.qiniu.com、up-z0.qiniu.com和upload.qiniu.com;上传到华北一区的域名为up-z1.qiniu.com和upload-z1.qiniu.com */"makeFileActionName" : "makeFile", /* 合成文件的url方法 */
Technical support
Email: [email protected]
Ueditor combined with seven Qiniu storage upload images, attachments and images online management implementation and latest updates