emit attachment event