Let's have the following page:
<html>
<head><meta charset="utf-8"></head>
<body>
<div><input type="file" id="file0" onchange="readFile(event)" /></div>
<div><input type="file" id="file1" onchange="readFile(event)" /></div>
<input type="button" value="send" onclick="sendFile()" />
<script>
var glob = new Array();
function readFile(event) {
    var input = event.target;
    glob.push(input.files[0]);
    console.log(glob);
}
function sendFile() {
    var i;
    for (i = 0 ; i < glob.length ; i++) {
        console.log(glob[i].name);
        var reader = new FileReader();
        reader.onload = function(){
            var arr = reader.result;
            var uint8View = new Uint8Array(arr);      
            console.log(uint8View);
        };
        reader.readAsArrayBuffer(glob[i]);
    }
}
</script>
</body>
</html>
I'm loading 2 files from my computer and click on "send". But I'm receiviving error message on console in FF: TypeError: invalid arguments. Different error message in IE: Typed array constructor argument is invalid. Seems to me that problem is with Uint8Array() but what's wrong? If I send a single file it is okay.
