chunk_file_upload.php
1.6 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
49
50
51
52
53
<?php
/**
* Created by PhpStorm.
* User: 猫巷
* Email:catlane@foxmail.com
* Date: 2019/5/29
* Time: 9:26 AM
*/
return [
'disks' => [
'local' => [
'driver' => 'local' ,
'root' => storage_path('app') ,
] ,
'public' => [
'driver' => 'local' ,
'root' => storage_path('app/public') ,
] ,
'chunk_file' => [
'driver' => 'local',
'root' => storage_path('app/public/chunk_file'),
'url' => env('APP_URL').'/storage/chunk_file',
],
'qiniu_live' => [//七牛云
'driver' => 'qiniu' ,//如果是七牛云空间,必填qiniu
'domains' => [
'default' => '****' , //你的七牛域名
'https' => '' , //你的HTTPS域名
'custom' => '****', //你的自定义域名
] ,
'access_key' => '****' , //AccessKey
'secret_key' => '*****' , //SecretKey
'bucket' => '***' , //Bucket名字
'url' => '*******' , // 填写文件访问根url
'qn_area'=> 'http://up.qiniu.com',
]
] ,
'default' => [
'disk' => 'chunk_file' ,//默认磁盘
'extensions' => 'jpg,png,mp4' ,//后缀
'mimeTypes' => 'image/*,video/*' ,//类型
'fileSizeLimit' => 10737418240 ,//上传文件限制总大小,默认10G,默认单位为b
'fileNumLimit' => '1' ,//文件上传总数量
'saveType' => 'json', //单文件默认为字符串,多文件上传存储格式,json:['a.jpg','b.jpg']
]
];