Welcome Guest, Not a member yet? Register   Sign In
Allowing all file types in upload library.
#2

[eluser]xwero[/eluser]
you could include the config/mimes.php file before you load the library.
Code:
include(APPPATH.'config/mimes'.EXT);
// begin configuration
$config['allowed_types'] = implode('|',array_keys($mimes));
$config['mimes'] = $mimes; // prevents loading the mimes file for the second time

unset($mimes);
// rest of configuration

It would be nice if the mimes config file was structured like the normal config files so you could load it using load->config.


Messages In This Thread
Allowing all file types in upload library. - by El Forum - 03-20-2009, 03:07 PM
Allowing all file types in upload library. - by El Forum - 03-20-2009, 03:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB