From 4f7e1566bd346c9fcfa6763dc598f7746b71ebe5 Mon Sep 17 00:00:00 2001 From: Dan Polivy Date: Thu, 26 Mar 2015 23:13:12 -0700 Subject: [PATCH] CB-6313 [wp8]: Extra boundary in upload When performing an upload on Windows Phone, an extra boundary is included after any parameters, and before the file contents. This causes some servers (such as express/multiparty on node.js) to fail to handle the request properly. This commit removes the extraneous boundary. Fixes https://issues.apache.org/jira/browse/CB-6313 github close #73 --- src/wp/FileTransfer.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/wp/FileTransfer.cs b/src/wp/FileTransfer.cs index e1f9fb0..7c29cfc 100644 --- a/src/wp/FileTransfer.cs +++ b/src/wp/FileTransfer.cs @@ -818,7 +818,6 @@ namespace WPCordovaClassLib.Cordova.Commands byte[] formItemBytes = System.Text.Encoding.UTF8.GetBytes(formItem); requestStream.Write(formItemBytes, 0, formItemBytes.Length); } - requestStream.Write(boundaryBytes, 0, boundaryBytes.Length); } using (IsolatedStorageFile isoFile = IsolatedStorageFile.GetUserStoreForApplication()) {