[V6] Resourcified attachments

rebased #506.