I am able to get most file MIME types by checking the file in a HTML file element, however when choosing a .tgz file I do not get a type.
Here is a jsfiddle showing the file type when a file is selected from the HTML file input: http://jsfiddle.net/chrisabrams/cTJKf/
According to the spec it’s up to the browser to attempt to determine the content-type and if it fails, it should return an empty string.
So whatever browser you’re using doesn’t recognise what a .tgz file is – this could vary both per-browser and also per-operating-system however.
I’m using Opera on Linux and it recognises .tgz but – for example – doesn’t recognise .xcf