From 4485ed674688f6e6aa73c3cf05020b52aa42e39a Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Fri, 31 May 2019 12:37:18 +0100 Subject: [PATCH] File mime type fix with extra nested object See https://azure.github.io/azure-storage-node/BlobService.html#createBlockBlobFromLocalFile__anchor for more details on the API --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d9ee288..7308c83 100644 --- a/index.js +++ b/index.js @@ -89,7 +89,7 @@ AzureAdapter.prototype.uploadFile = function (file, callback) { container, blobName, file.path, // original name - { contentType: file.mimetype }, + { contentSettings: { contentType: file.mimetype } }, function (err, result) { if (err) return callback(err);