public function addDisallowedType($type)
    {
        if (!in_array(strtolower($type), $this->disallowedTypes)) {
            $this->disallowedTypes[] = strtolower($type);
        }
        return $this;
    }
public function addDisallowedType($type)
    {
        if (!in_array(strtolower($type), $this->disallowedTypes)) {
            $this->disallowedTypes[] = strtolower($type);
        }
        return $this;
    }
public function addDisallowedType ( $ type ) { if ( ! in_array ( strtolower ( $ type ) , $ this -> disallowedTypes ) ) { $ this -> disallowedTypes [ ] = strtolower ( $ type ) ; } return $ this ; }
Add a disallowed type

@param  string $type
@return Upload
Add a disallowed type