modify server side file type check