|
I have a component developed in C# ( chain of responsibility pattern) which validates the file types based on the extension and signature mismatch.
It is good to go with the files like doc,docx,xls,xlsx. But for the scenario where an object(say another word,xlsx) is embedded in the file to be uploaded how to extract and validate that file.
This component also validates a zip file by extracting it to a path and doing the checks for all,one by one.
Any pointers for how to do this for an embedded object as I couldn’t find any blog also.
p.S:
Thanks in Advance
Avinash
http://www.garykessler.net/library/file_sigs.html[^]
|
|
|
|