A Charleston man has been accused of soliciting a minor for sex, authorities said.

Ian James Willis, 19, of Halstead Street was arrested by the Florence County Sheriff's Office, a member of the attorney general's Internet Crimes Against Children Task Force, on Aug. 14. Willis traveled to Florence County, where he had arranged to meet the minor, according to the Attorney General's Office.

Willis communicated electronically with the minor for about one month, according to investigators. He sent a photo exposing himself and sexually explicit text messages, authorities said.

Willis was charged with one count of criminal solicitation of a minor, a felony offense punishable by up to 10 years in prison; one count of dissemination of obscene material to a minor (18 or younger), a felony offense punishable by up to 10 years in prison and Sex Offender Registry status; and one count of second-degree attempted criminal sexual conduct with a minor, a felony punishable by up to 20 years in prison and Sex Offender Registry status.

The case will be prosecuted by the Attorney General's Office.