You can use Firebug Lite in IE to investigate what's going on with files
First, include Firebug Lite in your file
<script type='text/javascript'
src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
Now log it in the console with
var files = applet.getFiles();
console.log(files);
for (var i = 0; i < files.length; i++) //...
Now you can investigate what object was actually being returned by getFiles()
I give this suggestion because IE said length
is null not or not an object instead of files
is null or not an object, so maybe files
have other methods that you can use. Use Firebug to reflect those.