You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trying to send a Blob with XHR2 sends the request with an empty body on Android 4+ #34
XMLHttpRequest 2 and Blob constructing are both supported in ICS and newer. Therefore we should be able to send a raw Blob as an ajax request's body using xmlhttprequest.send(blob).
Unfortunately, trying to send a Blob this way sends the request with an empty body/payload.
The Blob is constructed correctly, the issue is with the actual request.
The work-around is to create an ArrayBuffer, and send it in the same way, using xmlhttprequest.send(arraybuffer).
Both sending methods (sending the blob and sending the arraybuffer) work on modern desktop browsers, while on Android only the "Send as ArrayBuffer" works. This is because, as said above, the request is sent empty, without an actual body/payload.
Activity
Bnaya commentedon Jun 28, 2014
That bug exists on 4.0.x - 4.1.x, not the entire 4.x line