【发布时间】:2016-05-12 18:19:05
【问题描述】:
我已经访问了一些相关问题并尝试了该步骤,但在尝试上传 psd 或 ai 文件时使用codeigniterThe filetype you are attempting to upload is not allowed 上传文件时仍然出错。
我已经为允许的文件类型尝试了类似的方法
$config['allowed_types'] = 'psd|ai|gif|jpg|png|xlsx|xls|pdf|doc|docx';
我看了config/mimes.php psd 的值是
'psd' => 'application/x-photoshop',
我的浏览器发送文件类型'application/octet-stream'
我改了mimes.php
'psd' => array('application/x-photoshop','application/octet-stream'),
但还是同样的错误The filetype you are attempting to upload is not allowed
请帮帮我
【问题讨论】:
标签: php codeigniter file-upload mime-types mime