in reply to Re: check file type
in thread check file type

You could read the first 3 bytes of the file and use a regex statement to determine type, MZ, PK, RAR etc.