Repository: cordova-plugin-file-transfer Updated Branches: refs/heads/master 41fa11b50 -> 9dc41bd4e
CB-11316 windows: Added content-type for files - added Content-Type header for each file in the multipart upload This closes #149 Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/commit/9dc41bd4 Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/tree/9dc41bd4 Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/diff/9dc41bd4 Branch: refs/heads/master Commit: 9dc41bd4e97eafe80fb9bc6573396fcab5967708 Parents: 41fa11b Author: Ben Marshall <ben3...@users.noreply.github.com> Authored: Tue Jun 7 13:56:57 2016 +0100 Committer: Vladimir Kotikov <kotikov.vladi...@gmail.com> Committed: Wed Aug 17 17:24:00 2016 +0300 ---------------------------------------------------------------------- src/windows/FileTransferProxy.js | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/9dc41bd4/src/windows/FileTransferProxy.js ---------------------------------------------------------------------- diff --git a/src/windows/FileTransferProxy.js b/src/windows/FileTransferProxy.js index 56df315..5d1363f 100644 --- a/src/windows/FileTransferProxy.js +++ b/src/windows/FileTransferProxy.js @@ -367,6 +367,7 @@ exec(win, fail, 'FileTransfer', 'upload', // Adding file to upload to request payload var fileToUploadPart = new Windows.Networking.BackgroundTransfer.BackgroundTransferContentPart(fileKey, fileName); + fileToUploadPart.setHeader("Content-Type", mimeType); fileToUploadPart.setFile(storageFile); transferParts.push(fileToUploadPart); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org