fileReader.readAsBinaryString to upload files
(Following is a late but complete answer) FileReader methods support FileReader.readAsBinaryString() is deprecated. Don’t use it! It’s no longer in the W3C File API working draft: void abort(); void readAsArrayBuffer(Blob blob); void readAsText(Blob blob, optional DOMString encoding); void readAsDataURL(Blob blob); NB: Note that File is a kind of extended Blob structure. Mozilla still implements readAsBinaryString() … Read more