Change file name on pub form when it's edited

From #5661.