ELIZABETH, NJ — A Westfield man caught with over 4,000 child pornography files was sentenced Friday to 10 years in state prison, authorities said.

Gregory L. Brown, 38, a resident of John Street, previously pled guilty to one count of first-degree possession of child pornography with the intent to distribute, the statement from acting Union County Prosecutor Lyndsay V. Ruotolo said.

Brown must serve all 10 years of his prison sentence before he is eligible for parole under the sentence issued by Superior Court Judge Regina Caulfield, authorities said.

Our newsletter delivers the local news that you can trust.

The Union County Prosecutor’s Office Cyber Crime Task Force, a unit of the prosecutor’s office Major Crimes Division, had connected Brown to multiple Tumblr accounts containing child pornography, authorities said.

In addition to a forensic search of the social media accounts, detectives found the child pornography files on electronic devices belonging to Brown, including a mobile phone and damaged tablet, according to Union County Assistant Prosecutor Derek Nececkas.

Brown is listed on the New Jersey State Police’s sex offender registry. In 2000, he was convicted of sexual assault and endangering the welfare of a child, according to the registry. The conviction happened in Pennsylvania, the registry shows.