The Braves, who lead the NL in come-from-behind wins, overcame deficits of 3-1 and 4-3.
Pitchers for the two teams combined to retire 30 consecutive batters Monday, when Atlanta won 7-1 in 14 innings. But the second game of the series was a slugfest, with Upton leading the way.
He doubled home a run in the third, doubled and scored to make it 4-all in the fifth, then hit his 16th home run -- but first since June 12 -- leading off the seventh against reliever Ryan Webb.
In Monday's marathon, Upton hit a two-run double to put Atlanta ahead in the final inning.
Julio Teheran (7-4) allowed one earned run in 7 1-3 innings. All-Star closer Craig Kimbrel pitched a perfect ninth for his 24th save in 27 chances, and Atlanta improved to 12-2 at Marlins Park since it opened in 2012.
Henderson Alvarez (0-1) allowed five runs, four earned, in six innings for Miami.
PHILLIES 4, NATIONALS 2
Hamels (4-11) allowed one run and six hits to win consecutive starts for the first time this season. The Phillies have won six of their past eight games.
Jayson Werth hit a solo homer for Washington. The defending NL East champs have lost two straight and are only 1½ games ahead of third-place Philadelphia.
Making his third career start, Taylor Jordan (0-2) gave up four runs -- three earned -- and eight hits in 5 2-3 innings for the Nats.
BREWERS 2, REDS 0
Peralta (6-9), whose start was pushed back from Sunday to give his aching left hamstring a couple extra days of rest, struck out six and walked four for his first complete game. It also was the Brewers' first shutout and complete game of the season.
Tony Cingrani (3-1), was almost as effective as Peralta, allowing only two singles and Schafer's home run, striking out 10 and walking two in seven innings.
Schafer was a last-minute replacement for Norichika Aoki.
CUBS 7, ANGELS 2
Wood (6-6) gave up four hits over 6 2-3 innings and retired 14 straight from the second inning into the sixth for his first victory since May 30.
Rizzo and Soriano hit back-to-back home runs in the first inning, Castro hit a solo homer to center in the third and Barney hit a three-run homer in the sixth. All came off Joe Blanton (2-11), who leads the majors in losses.
Copyright 2013 by The Associated Press
This story is from ESPN.com's automated news wire. Wire index
MORE MLB HEADLINES
- IRS to auction money Mets owe Strawberry
- Pirates win negotiating rights to S. Korean SS
- Twins extend pitcher Hughes through 2019
- Romo, Giants finalize $15M, 2-year contract