Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 243
Ali Avatar asked Sep 10 '25 06:09

Ali


1 Answers

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

$config['allowed_types'] = '*';
like image 80
Baris Avatar answered Sep 12 '25 22:09

Baris