Officials are not releasing the name of a man who was inside a dumpster when it was dumped into a trash compacting truck Tuesday night.

According to a release from Crescent City Fire and Rescue, firefighters were called to assist the man, who had climbed through an opening on the top of the large truck and had been been on the roof as it it drove to its next stop. The incident was not noticed as the truck continued on its route.

“The operator saw or heard the victim when he stopped to open a garbage enclosure to retrieve another dumpster at 560 L Street,” the release states.

After the operator called the fire department, it was determined that no one else was inside the compactor area.

“Fire personnel utilized rope rescue skills and suspended a stokes rescue basket under the large ladder on the ladder truck,” the release said. The basket was lifted to the top of the refuse truck, and the victim loaded.”

The man was taken to Sutter Coast Hospital for treatment, and it’s unknown if he was sleeping or salvaging trash when the dumpster was offloaded into the truck.

“This incident could have been tragic had the victim lost consciousness in the rear of the refuse truck or not been able to get back on top of the cab, as he would have been compacted into the load of trash and died,” the CCFR report said. “Dumpsters are not designed for human habitation and should not be occupied for any reason.”

It’s not known if it’s related, but at 8:48 p.m. the previous night, a caller told police dispatch that a subject was digging through a dumpster in the 200 block of L Street. At 7:53 p.m. that same night, a caller in the 200 block of M Street reported a male subject was digging through a dumpster and refusing to leave.