设置不允许上传的文件扩展名、设置只允许通过远程下载的文件扩展名
设置方法
1、新建文件config/fileext.php
2、内容格式如下
<?php // 禁止以下文件上传 $this->notallowed = [ 'php', 'php3', 'asp', 'jsp', 'jspx', 'aspx', 'exe', 'sh', 'phtml', ]; // 下载文件扩展名白名单 $this->down_file_ext = [ 'jpg', 'jpeg', 'gif', 'png', 'webp', 'zip', 'rar', ];
文档最后更新时间:2022-09-09 13:02:17