 Upham served two terms as Mayor of Milwaukee, for 1849 and 1850.In 1858, President James Buchanan appointed Upham United States Attorney for the District of Wisconsin, where he served until 1861.Upham was the Democratic candidate for Governor of Wisconsin in 1851, but lost by less than one percent of the vote to Leonard J. Farwell, the Whig candidate.