[ https://issues.apache.org/jira/browse/CB-11316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15327198#comment-15327198 ]
ASF GitHub Bot commented on CB-11316: ------------------------------------- Github user cordova-qa commented on the issue: https://github.com/apache/cordova-plugin-file-transfer/pull/149 Cordova CI Build has one or more failures. **Commit** - [Link](https://github.com/apache/cordova-plugin-file-transfer/pull/149/commits/master) **Dashboard** - [Link](http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29/) | Builder Name | Console Output | Test Report | Device Logs | | :---: | :---: | :---: | :---: | | [Windows 8.1 Store]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-store/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-store/console) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-store/testReport/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-store/artifact/) | | [Windows 10 Store]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-10-store/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-10-store/console) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-10-store/testReport/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-10-store/artifact/) | | [Windows 8.1 Phone]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-phone/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-phone/console) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-phone/testReport/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=windows-8.1-phone/artifact/) | | [iOS]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=ios/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=ios/console) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=ios/testReport/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=ios/artifact/) | | [Android]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=android/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=android/console) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=android/testReport/) | [Link]( http://cordova-ci.cloudapp.net:8080/job/cordova-plugin-file-transfer-pr/29//PLATFORM=android/artifact/) | > Content-Type not set for multi-part file > ---------------------------------------- > > Key: CB-11316 > URL: https://issues.apache.org/jira/browse/CB-11316 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File Transfer > Affects Versions: 3.5.0 > Environment: OS: Windows 10 > Cordova CLI: 6.1.1 > cordova-plugin-file-transfer: 1.5.1 > Reporter: Ben Marshall > Labels: Windows, Windows10, triaged > > When uploading a file as a muti-part file on windows 10 the "Content-Type" > header for the file is not set. > This results in a request that has no content-type that reflects the type of > the file. > This can be resolved by setting a multi-part header after creating the > *BackgroundTransferContentPart* > [Link to GitHub file | > https://github.com/apache/cordova-plugin-file-transfer/blob/master/src/windows/FileTransferProxy.js#L369-#L371] > by changing the following code: > {code:JavaScript} > var fileToUploadPart = new > Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart(fileKey, > fileName); > fileToUploadPart.setFile(storageFile); > transferParts.push(fileToUploadPart); > {code} > *To:* > {code:JavaScript} > var fileToUploadPart = new > Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart(fileKey, > fileName); > // added the file mime type > fileToUploadPart.setHeader("Content-Type", mimeType); > fileToUploadPart.setFile(storageFile); > transferParts.push(fileToUploadPart); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org