spam filter and training file upload