插件:
1.下载附件-解压-上传
2.修改config/config_global.php // --------------------------- 附件储存-开始 --------------------------- //
$_config['extend']['storage']['curstorage']='XXX'; // 指定储存(upyun/又拍云,aliyun/阿里OSS,qiniu/七牛云)
$_config['extend']['storage']['upyun']['bucket']='XXX'; // 又拍云设置
$_config['extend']['storage']['upyun']['username']='XXX';
$_config['extend']['storage']['upyun']['password']='XXX';
$_config['extend']['storage']['upyun']['attachurl']='http://XXX';
$_config['extend']['storage']['aliyun']['access_id']='XXX'; // 阿里OSS设置2
$_config['extend']['storage']['aliyun']['access_key']='XXX'; // 3
$_config['extend']['storage']['aliyun']['access_host']=NULL;
$_config['extend']['storage']['aliyun']['bucket']='XXX'; // 1
$_config['extend']['storage']['aliyun']['attachurl']='XXX'; // oos地址
$_config['extend']['storage']['qiniu']['accesskey']='XXX'; // 七牛云设置 1
$_config['extend']['storage']['qiniu']['secretkey']='XXX'; // 2
$_config['extend']['storage']['qiniu']['attachurl']='http://XXX'; // 4
$_config['extend']['storage']['qiniu']['bucket']='XXX'; // 3
// --------------------------- 结束 --------------------------- //
3.后台--全局--上传设置--远程附件--打开--输入远程地址--测试-。
设置图文对照:
1.七牛
2.OSS
主题分享
// --------------------------- 附件储存-开始 --------------------------- //
$_config['extend']['storage']['curstorage']='qiniu'; // 这里我使用 七牛云 演示
$_config['extend']['storage']['upyun']['bucket']='XXX'; // 又拍云设置
$_config['extend']['storage']['upyun']['username']='XXX';
$_config['extend']['storage']['upyun']['password']='XXX';
$_config['extend']['storage']['upyun']['attachurl']='http://XXX';
$_config['extend']['storage']['aliyun']['access_id']='XXX'; // 阿里OSS设置2
$_config['extend']['storage']['aliyun']['access_key']='XXX'; // 3
$_config['extend']['storage']['aliyun']['access_host']=NULL;
$_config['extend']['storage']['aliyun']['bucket']='XXX'; // 1
$_config['extend']['storage']['aliyun']['attachurl']='XXX'; // oos地址
$_config['extend']['storage']['qiniu']['accesskey']='aC908xp8XvNfY4naGZrS5ahs0c'; // AK
$_config['extend']['storage']['qiniu']['secretkey']='GxRueuig7ZTnngyIonV4'; // SK
$_config['extend']['storage']['qiniu']['attachurl']='7sbxiz.com1.z0.glb.clouddn.com'; // 域名
$_config['extend']['storage']['qiniu']['bucket']='gdfgh'; // 空间名
// --------------------------- 结束 --------------------------- //
-------------------------
引用第14楼peiru于2015-01-30 09:20发表的 ReDiscuz3.2云储存插件 :
安装后,提示 尝试下载文件失败,请检查远程URL是否正确!
-------------------------
-------------------------
-------------------------
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。