Change to the logic of file type detection (the reason zip files were not getting
unpacked, in some browsers - ?)