The 49ers upset the Saints in New Orleans 48-46 with a last-second field goal.