Only able to attach CSV files in attachments in pega

I have a requirement
to provide user upload file button option and they can only upload CSV files
Please recommend a approach

Also articles about Attachements which class we can use will be helpful

Thanks

@DileepKumarVarmaC16698431 please first check the available documentation:

Categorizing Case attachments

Attaching content to a Case

Controlling access to Case attachments

Restricting user actions for Case attachments

You should also do a PSC key word search, where you may find relevant past questions with answers.

To upload files in Pega, if you are specifically looking to handle CSV files, you can utilize the functionality described in the context. It mentions that when uploading a CSV file, it is important to ensure that the file is correctly formatted and saved. If you encounter issues with file types, you may need to check the configurations in your application to ensure that only the desired file types, such as CSV, are allowed for upload. Additionally, if you are using a file listener, it can help manage the uploaded files effectively.

How to build uploading CSV file function

@DileepKumarVarmaC16698431

I hope this can be done using the extension CallVirusCheck to handle CSV-specific attachments(pxAttachName).

@DileepKumarVarmaC16698431

Did this by checking "Embed-DragDropFile " class property .FileType!=“csv” and using this method pxAddMessageToProperty in DT while uploading file
This class is holding the message and if it hasmessages set a validation on pyWorkPage