Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D9FD617402 for ; Sat, 25 Apr 2015 22:07:40 +0000 (UTC) Received: (qmail 62860 invoked by uid 500); 25 Apr 2015 22:07:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 62841 invoked by uid 500); 25 Apr 2015 22:07:40 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 62826 invoked by uid 99); 25 Apr 2015 22:07:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Apr 2015 22:07:40 +0000 Date: Sat, 25 Apr 2015 22:07:40 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6313) Extra boundary in FileTransfer upload on Windows Phone MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14512744#comment-14512744 ] ASF GitHub Bot commented on CB-6313: ------------------------------------ Github user asfgit closed the pull request at: https://github.com/apache/cordova-plugin-file-transfer/pull/73 > Extra boundary in FileTransfer upload on Windows Phone > ------------------------------------------------------ > > Key: CB-6313 > URL: https://issues.apache.org/jira/browse/CB-6313 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File Transfer, WP8 > Affects Versions: 3.4.0 > Environment: Windows Phone 8; Cordova 3.4.0 > Reporter: Dan Polivy > Assignee: Jesse MacFadyen > Labels: filetransfer, windows-phone, wp8 > > I am using the File Transfer plugin on Windows Phone 8, and am adding additional parameters to the upload via FileTransferOptions.params. When doing this, I've found that an extra boundary is emitted into the request, which unfortunately causes my node.js server (running express) to fail in parsing the form submission. > The form submission ends up looking like this (notice the extra boundary included after the parameters, and before the file itself): > ------------------------------8d1119c8955f52c > Content-Disposition: form-data; name="param1" > 1 > ------------------------------8d1119c8955f52c > Content-Disposition: form-data; name="param2" > 2 > ------------------------------8d1119c8955f52c > ------------------------------8d1119c8955f52c > Content-Disposition: form-data; name="file"; filename="///CapturedImagesCache/C__Data_Users_Public_Pictures_Camera Roll_WP_20140319_001_jpg.jpg" > {data} > ------------------------------8d1119c8955f52c-- > I've reviewed the code, and believe it is simply a one line fix to remove the line causing the issue, but confirmation from one of the owners would be helpful. > For me, it is line 746 of FileTransfer.cs: > requestStream.Write(boundaryBytes, 0, boundaryBytes.Length); > I've confirmed that commenting out this line in my app will allow the upload to complete successfully. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org