I am trying to upload the text file having extension .txt containing some html tags also because of which my validation rule does not allow to upload the file.
It is probably mime. It tries to read the file and deduce what the mime type is, which can be different than the file extension. It also doesn't seem to work 100% in my experience.
The only way I got this work was to create a custom validation