-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload.php
More file actions
executable file
·48 lines (45 loc) · 2.2 KB
/
Copy pathupload.php
File metadata and controls
executable file
·48 lines (45 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/*{{{LICENSE
+-----------------------------------------------------------------------+
| SsdPHP Framework |
+-----------------------------------------------------------------------+
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation. You should have received a copy of the |
| GNU General Public License along with this program. If not, see |
| http://www.gnu.org/licenses/. |
| Copyright (C) 2015-2020. All Rights Reserved. |
+-----------------------------------------------------------------------+
| Supports: http://www.SsdPHP.com |
+-----------------------------------------------------------------------+
}}}*/
//视图配置
use SsdPHP\SsdPHP;
return [
//本地上传配置
'upload'=>array(
'local'=>array(
'mimes' =>array(),
'exts' =>array(),
'autoSub' =>true,
'subName' =>array('date', 'Ymd'),
'rootPath' =>SsdPHP::getAppDir().'/www/upload/',
'savePath' => '',
//上传文件命名规则,[0]-函数名,[1]-参数,多个参数使用数组
'saveName' => array('md5_file', ''),
'saveExt' => '', //文件保存后缀,空则使用原后缀
'replace' => true, //存在同名是否覆盖
'hash' => true, //是否生成hash编码
'callback' => false, //检测文件是否存在回调,如果存在返回文件信息数组
'driver' => 'Local', // 文件上传驱动
'driverConfig' => array(), // 上传驱动配置
),
"qiniu"=>array(
"ak"=>'B6cG_ORctkLg3xDY-ZC-DeKXvek5uoHIaJaSOilY',
"sk"=>'HBl034J6xZFVhyyeKceQrFniR4hEnB_OR7-WS2G-',
"domain"=>"https://ssl.static.xinzhic.com",
"bucket"=>"static",
"upurl"=>"http://up-z0.qiniu.com",
),
),
];