The Karnataka High Court on Friday upheld the ban imposed by the state government on export of iron ore and dismissed the writ petitions fled by the 40 affected mining companies.