add mimetype, id, filename to attachment