A 27-year-old Charlottetown man was sent to hospital Wednesday morning with smoke inhalation following a fire at an apartment building on University Avenue.

Charlottetown firefighters were called to the building at around 6:30 a.m. When they arrived the occupants of the two apartments had escaped.

Deputy fire chief Tim Mamye told CBC News a man woke to find fire in the bedroom of his second floor apartment.

"The occupant of the apartment that was on fire did suffer some smoke inhalation, but was conscious and was talking to both EMS and fire personnel," said Mamye.

"[He] was transported to hospital as a precaution. But it appears accidental and it started in the apartment at the front of the building."

University Avenue was closed for about an hour while the fire was being put out.

Mamye said there is fire damage in the bedroom where the fire began, and smoke damage in the other areas of the building.

The cause of the fire is still under investigation.