Welcome Guest, Not a member yet? Register   Sign In
File Upload - File Types
#1

[eluser]ervinter[/eluser]
May I know what value I need to set to allowed_types if I allow user to upload all file types.

Thanks for your help
Ervin
#2

[eluser]InterCoder[/eluser]
As far as I can see in the source code of the File Upload Class, I see in this piece of source code:

Code:
function set_allowed_types($types)
{
    $this->allowed_types = explode('|', $types);
}

that the function expects a string with a pipe, so I don't think a wild-card (*) will do the trick.

The only solution I can think of, is just add as much file types as you can imagine. Or you have to modify / extend the class.
#3

[eluser]ervinter[/eluser]
Yeah, I have a try o asterisk (*) but it seem not working.




Theme © iAndrew 2016 - Forum software by © MyBB