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 1B13317466 for ; Thu, 5 Nov 2015 07:48:28 +0000 (UTC) Received: (qmail 96084 invoked by uid 500); 5 Nov 2015 07:48:27 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 96047 invoked by uid 500); 5 Nov 2015 07:48:27 -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 96013 invoked by uid 99); 5 Nov 2015 07:48:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2015 07:48:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BB66C2C1F5F for ; Thu, 5 Nov 2015 07:48:27 +0000 (UTC) Date: Thu, 5 Nov 2015 07:48:27 +0000 (UTC) From: "Sergey Shakhnazarov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-7566) FileTransfer: Doc incorrectly says that mimeType defaults to "image/jpeg" 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-7566?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Shakhnazarov resolved CB-7566. ------------------------------------- Resolution: Fixed Fixed in CB-9790 > FileTransfer: Doc incorrectly says that mimeType defaults to "image/jpeg" > ------------------------------------------------------------------------- > > Key: CB-7566 > URL: https://issues.apache.org/jira/browse/CB-7566 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File Transfer > Reporter: Jonathan Aquino > Priority: Trivial > > The documentation for mimeType at https://github.com/apache/cordova-plugin-file-transfer/blob/master/doc/index.md says > "mimeType: The mime type of the data to upload. Defaults to image/jpeg." > However, if you look at the code in https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/ios/CDVFileTransfer.m you will see that mimeType is actually not sent if it is unset: > if (mimeType != nil) { > [postBodyBeforeFile appendData:[[NSString stringWithFormat:@"Content-Type: %@\r\n", mimeType] dataUsingEncoding:NSUTF8StringEncoding]]; > } > I recommend changing the doc from "Defaults to image/jpeg." to "If unspecified, no Content-Type will be sent." -- 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