Extract attachment copy logic into file_copy_attachments
Affects 0013166 : Clone task: allow copying of attachments