would be better if someone can use similar features as in libmagic on linux, as that is what I guess a better way to detect types of files than relaying on the extension name of a file.
For example, if I rename a file from mypicture.jpg to mypicture.txt On linux, it will still be reported as a picture But using this methodology here, it will be reported as text file.
Regards Tomas