A New Zealand judge has upheld an earlier ruling that flamboyant internet entrepreneur Kim Dotcom and three of his colleagues can be extradited to the U.S. to face criminal charges.

The decision Monday comes five years after U.S. authorities shut down Dotcom's file-sharing website Megaupload and filed charges of conspiracy, racketeering and against the men.

U.S. prosecutors say the site raked in at least $175 million, mainly from people using it to illegally download songs, and movies.

The New Zealand district court ruled in 2015 that Dotcom and the others were eligible for extradition.

High Court judge Justice Murray Gilbert found the district court made mistakes in its ruling but those didn't alter the big picture.

Dotcom tweeted Monday: "We won but we lost anyway."