Migrate FileReader ReadAsBinaryString() to ReadAsArrayBuffer() or ReadAsText()
问题 I realize that the new Mozilla Firefox return allocation size overflow (on FileReader.ReadAsBinaryString()) when the file bigger than 200MB (something like that). Here's some of my code on test for client web browser: function upload(fileInputId, fileIndex) { var file = document.getElementById(fileInputId).files[fileIndex]; var blob; var reader = new FileReader(); reader.readAsBinaryString(file); reader.onloadend = function(evt) { xhr = new XMLHttpRequest(); xhr.open("POST", "upload.php",