Question

1
Replies
24
Views
Close popover
Devendra Pawar (Deven)
NCS
Lead System Architect
NCS
SG
Deven Member since 2019 17 posts
NCS
Posted: March 26, 2021
Last activity: March 27, 2021

How to verify the MimeType of attached PDF file

For Security requirements, I have a requirement to implement checks on the file attached. I've already extended activity CallVirusCheck to verify the file extension, but how can I test if the extension corresponds to the real file format? ex: pdf extension is a real pdf file and not a text file with modified extension

 

Thanks!

Pega Platform 8.1.2 Security Technology Services