At the outbreak of the American Civil War, he enlisted in the Union Army and served in Company F of the 2nd Wisconsin Volunteer Infantry Regiment, called the Belle City Rifles. Shortly after its creation, the 2nd Wisconsin—along with the 6th Wisconsin, 7th Wisconsin, and 19th Indiana Volunteer Infantry Regiments—was organized into the unit later known as the "Iron Brigade" in the Army of the Potomac. He was wounded during the First Battle of Bull Run by a bullet passing through his shoulder strap that supported his cartridge box just at the shoulder blade. After going to the field hospital, he was captured by Confederate forces and sent to the converted tobacco barn, Libby Prison, along with other members of his company—F. Lacy, James Anderson, John H. Anderson, and Antle Henry. Congressman Alfred Ely from New York was captured along with them. At Libby Prison, he was attended by Dr. Lewis, the 2nd Wisconsin's surgeon. His family in Wisconsin, however, was told that he had been killed in action and held a funeral for him in Racine, Wisconsin—the captain of his company, William E. Strong, had seen him shot and reported that he believed him to be dead. Upham was released in a prisoner exchange in 1862 and repatriated to Washington, D.C., where he was introduced to President Abraham Lincoln at a White House interview arranged by Wisconsin SenatorJames Rood Doolittle. Soon after, Lincoln appointed Upham to the United States Military Academy in West Point, New York, from which he graduated in 1866. Upham was commissioned as an officer and served in the Army until 1869, having risen to the rank of first lieutenant. While stationed at Fort Monroe, he was detailed as officer of the guard, overseeing the temporary quarters of the then-imprisoned President of the Confederate States of America, Jefferson Davis. In his memoirs, Upham related that he and Davis "usually... past the hours until after midnight" in conversation, adding, "Mr. Davis was very pleasant and social... full of reminiscences... familiar with all parts of Wisconsin, he could tell me the meanings of all the Indian names of the ." Later in his life, Upham was a Grand Army of the Republic officer with the rank of major.
Postbellum career
After returning from military service, Upham first resided at Kewaunee, Wisconsin. In 1878, he and his brother, Charles, moved to Marshfield, Wisconsin, where they built the city's first sawmill. The Uphams flourished in the lumber industry, and his company, the Upham Manufacturing Company, came to own several businesses in the Marshfield area, including a shingle mill, grist mill, and furniture factory. In 1880, he constructed his family home, now known as the Gov. William H. Upham House and featured in the National Register of Historic Places. Upham became one of the most prominent residents of Marshfield in the era and was elected Mayor for three years, in 1886, 1887, and 1891. On June 27, 1887, a major fire started at Upham's lumber mill and spread across all of Marshfield, destroying 250 buildings—virtually the entire city. Upham led reconstruction efforts and saw the city return to prosperity. In 1894, Upham was the Republican Party of Wisconsin's nominee for Governor against incumbent Democrat George Wilbur Peck. Upham won the election and became the 18th Governor of Wisconsin in January 1895. He served one term but did not seek re-election in 1896. Upham instead tended to his business interests in Marshfield, as President of Upham Manufacturing and the Water, Electric Light and Power Co. Upham retired from business in 1919 and spent much of his later years in Florida. He died of pneumonia in Marshfield, Wisconsin, on July 2, 1924. The town of Upham, Wisconsin, is named for him.
Descendants
Some two years after the death of his first wife, Mary Kelly, in 1912, Upham, then 73, undertook a voyage along the Atlantic coast, that was forced by storm to harbor at Beaufort, North Carolina. There he met and married his much younger second wife, Grace Mason, and begat two sons: William H. Upham, Jr.,, and Frederick M. Upham, who survived his older sibling. On August 20, 2009, at age 93, William H. Upham, Jr., died in his home in Milwaukee, Wisconsin, due to pneumonia. On December 30, 2018, at age 97, Frederick M. Upham died in Fort Collins, Colorado.