Javascript: Sending arrayBuffer using XMLHttpRequest
Notice that the Blob
constructor takes an array of typed arrays (or other sources) as its parameter. Try
form.append("picture", new Blob([fileAsArray], {type: "image/jpg"} ));
Notice that the Blob
constructor takes an array of typed arrays (or other sources) as its parameter. Try
form.append("picture", new Blob([fileAsArray], {type: "image/jpg"} ));