Police are investigating after a 37-year-old man was allegedly stabbed several times following an incident in Wester Hailes.
It is understood the victim received head and arm injuries after a disturbance in Murrayburn Gardens just after midnight on Saturday morning.
He was taken to the Edinburgh Royal Infirmary by ambulance.
A girl who was with the alleged victim is said to have called the emergency services.
On Saturday afternoon, blood was still splattered on the floor of the stairs of the flats and smeared upon the walls.
One woman who lived nearby said: “Usually this is a very quiet street and it’s actually quite a nice community. I’m shocked really.”
Police said that a 35-year-old man had been arrested and charged in connection with an alleged assault.