public function removeAllowedType($type)
    {
        if (in_array(strtolower($type), $this->allowedTypes)) {
            unset($this->allowedTypes[array_search(strtolower($type), $this->allowedTypes)]);
        }
        return $this;
    }
public function removeAllowedType($type)
    {
        if (in_array(strtolower($type), $this->allowedTypes)) {
            unset($this->allowedTypes[array_search(strtolower($type), $this->allowedTypes)]);
        }
        return $this;
    }
public function removeAllowedType ( $ type ) { if ( in_array ( strtolower ( $ type ) , $ this -> allowedTypes ) ) { unset ( $ this -> allowedTypes [ array_search ( strtolower ( $ type ) , $ this -> allowedTypes ) ] ) ; } return $ this ; }
Remove an allowed type

@param  string $type
@return Upload
Remove an allowed type