From 9dc41bd4e97eafe80fb9bc6573396fcab5967708 Mon Sep 17 00:00:00 2001 From: Ben Marshall Date: Tue, 7 Jun 2016 13:56:57 +0100 Subject: [PATCH] CB-11316 windows: Added content-type for files - added Content-Type header for each file in the multipart upload This closes #149 --- src/windows/FileTransferProxy.js | 1 + 1 file changed, 1 insertion(+) 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);