My modification of com_attachments 2.2.2