mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2024-10-06 07:42:20 +08:00
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
This commit is contained in:
parent
75d55ddaaa
commit
4f7e1566bd
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user