I managed to upload an image to my server using Cordova File Transfer plugin.
var img =
var url =
var o
Took me awhile to figure this but this is the way I removed the Multipart Header. Here's the solution/work around.
Open: \platforms\android\src\org\apache\cordova\filetransfer\FileTransfer.java
Look for:
sendStream.write(beforeDataBytes);
totalBytes += beforeDataBytes.length;
Comment away or delete these 2 lines. They are the code that adds the multipart header.
Also remove:
sendStream.write(tailParamsBytes);
totalBytes += tailParamsBytes.length;
This code adds a tail for the multipart header.
I have done a MD5 checksum check and they are of the same now.