view raw
Click Upvote Click Upvote - 9 months ago 34
PHP Question

How to make CodeIgniter file upload class accept all extensions?

Currently if I supply no extensions to the class it allows no extensions. I would like to allow all extensions. Is there any way to do this without hacking the core?


In Codeigniter 2, you simply need to define allowed types like this :

$config['allowed_types'] = '*';