Do not define the data type to "upload" |
[eluser]Unknown[/eluser]
I want to use the library (upload) to upload files but I will not define the type of file: $config['allowed_types'] = ''; If I put it and tells me that: The filetype you Are Attempting to upload is not allowed. //$config['allowed_types'] = ''; Now if I remove that line I said: You have not specified Any file types allowed. Any suggestions? I do not want to define the type of data to upload. Thanks!
[eluser]Eric Barnes[/eluser]
Currently you can do that by hacking the core. This feature is a part of the new reactor which you can get from bitbucket: https://bitbucket.org/ellislab/codeignit...r/overview From the change log: Added a wildcard option $config['allowed_types'] = '*' to the File Uploading Class.
[eluser]Cristian Gilè[/eluser]
Hi erikrocha, this is a new feature in CI2 but, in the mean time, you can extends the upload class with this function: Code: public function is_allowed_filetype($ignore_mime = FALSE) then set the allowed_types setting to Code: $config['allowed_types'] = '*'; Cristian Gilè |
Welcome Guest, Not a member yet? Register Sign In |