Set attachment to be able to add a resource while attaching it.