Posted: 14 Jun 2019 8:31 EDT Last activity: 21 May 2020 12:00 EDT
How to correctly test MimeType of file Attach
For Security requirements, i have a requirement to implement checks on 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 txt file with modified extension
Thank you @BradTainter sure the link is helpful, but i wanted to implement the check always on CallVirusCheck Activity, Is there a way to check the header from Data-WorkAttach-File Page? maybe with pyAttachStream property?