Trying to use fileReader.readAsBinaryString to upload a PNG file to the server via AJAX, stripped down code (fileObject is the object containing info on my file);
Use fileReader.readAsDataURL( fileObject ), this will encode it to base64, which you can safely upload to your server.
fileReader.readAsDataURL( fileObject )