added is_file_type validator
added is_file_type validator

xiebaochun/validate.js,rickharrison/validate.js,releu/validate.js,quentinyang/validate.js,milonfci/validate.js,AlexR1712/validate.js,daytonn/validate.js,cemoulto/validate.js