[英]Why does function finfo_file show the wrong mime type in codeigniter's upload class?
[英]mime type torrent codeigniter to upload file
我正在尝试将“ torrent”文件上传到服务器,但是出现错误“不允许您尝试上传的文件类型”。 我编辑了mime.php文件:
'btt' => 'application/x-bittorrent',
谁能帮我?
我的解决方案是:
if($_FILES['userfile']['type'] == 'application/x-bittorrent'){
$config['allowed_types'] = '*';
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.