The Oakland city attorney’s office is recommending that the city pay $205,000 to settle a lawsuit from a resident who claimed that he was beaten by city workers outside City Hall.

Joshua Daniels sued the city after a confrontation with two maintenance workers left him unconscious and bloodied, with a black eye and a broken eye socket, he said in the court complaint.

According to the complaint, the workers cornered Daniels after he spit a piece of gum into a trash can at Frank Ogawa Plaza at around 8:30 a.m. on August 18, 2013.

“If you don’t get out of here, we’re going to beat your ass,” maintenance employee Sonny Hightower allegedly yelled as Daniels began recording the incident with an iPhone, according to the complaint. Daniels told the workers he planned to share the video with city officials and members of the City Council.

Hightower allegedly slapped the iPhone out of Daniels’ hand, grabbed his shirt collar, and punched him in the face and head until he lost consciousness. Daniels believes that Hightower, named as a defendant in the lawsuit, and another city employee kicked and punched him while he was lying unconscious on the pavement.

He said in the complaint that he woke up in his apartment covered in blood and was taken to the emergency room by officers from the Oakland Police Department. His iPhone was missing.

The City Council is scheduled to vote on the settlement next week.

Oakland attorney John Verber, who represented Hightower and the other worker, said his client and the other worker no longer work for the city.

James Chanin, a civil rights attorney representing Daniels, said he believes his client “is happy to put this behind him.”

Rachel Swan is a San Francisco Chronicle staff writer. E-mail: rswan@sfchronicle.com Twitter: @rachelswan