【发布时间】:2013-08-24 08:44:14
【问题描述】:
尝试在 Codeigniter 中上传 XML 文件时。我正在使用 eFax,尝试设置 Inbound Fax Delivery: 启用 XML Posting。每当我使用他们提供的 Sample.xml 文件进行测试发布时,我都会收到以下错误:
The filetype you are attempting to upload is not allowed.
其他文件可以正常上传。在我的上传配置中,xml 在allowed_types 的选项中设置:
$config['allowed_types'] = 'txt|xml';
为什么 Codeigniter 不允许 eFax XML 文档类型?
【问题讨论】:
标签: php xml codeigniter codeigniter-upload