public function removeDisallowedType($type)
    {
        if (in_array(strtolower($type), $this->disallowedTypes)) {
            unset($this->disallowedTypes[array_search(strtolower($type), $this->disallowedTypes)]);
        }
        return $this;
    }
public function removeDisallowedType($type)
    {
        if (in_array(strtolower($type), $this->disallowedTypes)) {
            unset($this->disallowedTypes[array_search(strtolower($type), $this->disallowedTypes)]);
        }
        return $this;
    }
public function removeDisallowedType ( $ type ) { if ( in_array ( strtolower ( $ type ) , $ this -> disallowedTypes ) ) { unset ( $ this -> disallowedTypes [ array_search ( strtolower ( $ type ) , $ this -> disallowedTypes ) ] ) ; } return $ this ; }
Remove a disallowed type

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