Pattern classification is a branch of machine learning that focuses on recognition of patterns and regularities in data. In adversarial applications like biometric authentication, spam filtering, network intrusion detection the pattern classification systems are used. In this paper, the authors have to evaluate the security pattern by classifications based on the files uploaded by the users. They have also proposed the method of spam filtering to prevent the attack of the files from other users. They evaluate their approach for security task of uploading word files and pdf files.