Uploading .amr with codeigniter

帅比萌擦擦* 提交于 2019-12-02 07:11:47
Rocco

You could try looking at system/libraries/Upload.php line 199:
$this->_file_mime_type($_FILES[$field]);
Change that line to
$this->_file_mime_type($_FILES[$field]); var_dump($this->file_type); die();
Now you redo your uploading and see what the actual mime type the browser sent to your server.

One silly and insecure workaround I did was adding that actual mime type to mimes array. But this could change if this question get answered :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!