If your requirement is to restrict the file types that a user can attach then you need to update this User-defined lookup 'XXAS_EMP_EXCLUDE_FILE_TYPES' with the file extensions that needs to be excluded when adding attachments.
Please modify this lookup by adding new file extensions that you want to exclude.