A valid text file is any file that contains simple english text in it. I know it sounds a little dumb but, let me tell you a bit of the requirement. The code has to process license files associated with a product and these license files always have plain english text explaining the license terms. It is the format that causes the problem e.g. If i have a product
Test the license file inside that product is named as Test.Test for some reason i dont know and have no control over. For these kind of files the content type comes as application/octet-strea, even though it is a simple text file. Is there a way around this problem.
I hope I conveyed the point....