[ 
https://issues.apache.org/jira/browse/CB-10974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15606013#comment-15606013
 ] 

ASF GitHub Bot commented on CB-10974:
-------------------------------------

Github user royipr commented on the issue:

    https://github.com/apache/cordova-plugin-file-transfer/pull/141
  
    Hi.
    
    I think I found a bug regarding the issue..
    When trying to upload a file with `chuckedMode: false` it seems to attach a 
`Transfer-Encoding` header by default. 
    This causes to upload to aws s3 to fail:
    `Message>A header you provided implies functionality that is not 
implemented</Message><Header>Transfer-Encoding</Header>`
    
    Take a look a this issue 
    
http://stackoverflow.com/questions/39780922/cordova-file-transfer-to-s3-aws-returns-501-error


> Cordova file transfer Content-Length header problem
> ---------------------------------------------------
>
>                 Key: CB-10974
>                 URL: https://issues.apache.org/jira/browse/CB-10974
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File Transfer
>         Environment: iPad Mini 2 with iOS 9.3
>            Reporter: Roman Lapotchkin
>            Assignee: Sergey Shakhnazarov
>              Labels: iOS, triaged
>
> The Content-Length header always sending even options.chunkedMode is true. It 
> expected header Transfer-Encoding: chuncked. When i commented this code in 
> src/ios/CDVFileTransfer.m at line 232 it works:
> [req setValue:[[NSNumber numberWithLongLong:totalPayloadLength] stringValue] 
> forHTTPHeaderField:@"Content-Length"];



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to