Accept pdf and txt files only.