A man pleaded guilty Tuesday to unlawfully posting a copy of “Star Wars: Episode III — Revenge of the Sith” on the Internet the night before the film appeared in theaters.

Marc Hoaglin entered his plea to one count of uploading a work being prepared for commercial distribution, the U.S. Attorney’s Office said in a statement.