更新
This commit is contained in:
parent
9fa6ade6be
commit
7ae8d10619
@ -216,7 +216,6 @@ class Config extends BaseController
|
||||
{
|
||||
$file = $this->request->file($field);
|
||||
if (!$file) return app('json')->fail('请上传附件');
|
||||
|
||||
//ico 图标处理
|
||||
if ($file->getOriginalExtension() == 'ico') {
|
||||
$file->move('public','favicon.ico');
|
||||
|
@ -19,9 +19,9 @@ return [
|
||||
//上传文件大小
|
||||
'filesize' => 52428800,
|
||||
//上传文件后缀类型
|
||||
'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key', 'xlsx', 'xls', 'ico', 'apk', 'ipa','wgt'],
|
||||
'fileExt' => ['jpg', 'jpeg', 'png', 'gif', 'pem', 'mp3', 'wma', 'wav', 'amr', 'mp4', 'key', 'xlsx', 'xls', 'ico', 'apk', 'ipa','wgt','zip'],
|
||||
//上传文件类型
|
||||
'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg', 'image/vnd.microsoft.icon','application/widget',],
|
||||
'fileMime' => ['image/jpeg', 'image/gif', 'image/png', 'text/plain', 'audio/mpeg', 'image/vnd.microsoft.icon','application/widget','application/zip'],
|
||||
//驱动模式
|
||||
'stores' => [
|
||||
//本地上传配置
|
||||
|
Loading…
x
Reference in New Issue
Block a user