首先,关于这个主题已经有很多(已解决的)问题。我尝试了所有可能的解决方案。但无济于事。
2.1.4
和2.2.1
中都会出现问题。png
,gif
和txt
。mime-type
次更改,例如。在AddType
文件.htaccess
5.5
和5.6
(已启用文件信息模块)mimes.php
文件tmp
文件夹可写我没有选择......
有人知道这个问题是什么吗?
提前致谢!
$this->uploadconfig = array(
'upload_path' => "./tmp/",
'allowed_types' => "png|gif|txt",
'overwrite' => TRUE,
'max_size' => "25000KB",
'max_height' => "5000",
'max_width' => "5000"
);
$this->load->library('upload', $this->uploadconfig);
The filetype you are attempting to upload is not allowed.
[file_name] => test.png
[file_type] => image/png
[file_path] => /CORRECT_SERVER_PATH/tmp/
[full_path] => /CORRECT_SERVER_PATH/tmp/test.png
[raw_name] => test
[orig_name] =>
[client_name] => test.png
[file_ext] => .png
[file_size] => 851
[is_image] => 1
[image_width] =>
[image_height] =>
[image_type] =>
[image_size_str] =>