<?php
// +----------------------------------------------------------------------
// | 上传配置
// +----------------------------------------------------------------------

return [
    //默认上传模式
    'default' => 'local',
    //上传文件大小
    'filesize' => 2097152,
    //上传文件后缀类型
    'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key'],
    //上传文件类型
    'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg'],
    //驱动模式
    'stores' => [
        //本地上传配置
        'local' => [],
        //七牛云上传配置
        'qiniu' => [
            'accessKey'     => 'K-P9_cqutGZOchFKMMaNPStTQLnTP-xer97Qe2ug',
            'secretKey'     => 'R_WUyYNp7K1CI8w5yqqVnQ0pOAQfE_E7cQ4nkZI2',
            'uploadUrl'     => 'imgs.boofly.cn',
            'storageName'   => 'live-product',
            'storageRegion' => 's3-cn-south-1.qiniucs.com'
        ]
    ]
];
