Forum Moderators: coopster
But the user may also have a file containing text data and may not have given the .txt extension (for example I found that application/octet-stream also reffers to TEXT files).
Does anybody know which of the MIME types of PHP must I check for? The MIME types that reffer to TEXT I mean.
Thanx!
Many types of files can contain text, yet be of a different MIME type, like application/ms-word, for example ... lots of text, but in a different type of file.
See The Internet Assigned Numbers Authority web site [iana.org] for a pretty complete list of MIME types, then select the ones you think your visitors will be uploading. You may, in fact, want to tell them which types of files you will accept.