Check the type of files you inputed