Checks if file uploaded is plain text