[英]Error uploading xls Codeigniter
the error only occurs on a particular file. 该错误仅发生在特定文件上。 a lot of files with the extension XLS and XLSX have been uploaded.
已上传许多扩展名为XLS和XLSX的文件。
My mimes: 我的哑剧:
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'),
'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/octet-stream','application/msexcel'),
Upload config: 上传配置:
$config['allowed_types'] = '*';
$config['max_size'] = '0';
The Error: 错误:
The filetype you are attempting to upload is not allowed.
不允许您尝试上传的文件类型。
Try Providing the Upload config specifically 尝试专门提供上载配置
$config['allowed_types'] = 'xls|xlsx';
$config['max_size'] = '0';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.