diff --git a/index.js b/index.js index 303ec44..abd0990 100644 --- a/index.js +++ b/index.js @@ -75,7 +75,7 @@ class MulterAzureStorage { return } - const blob = (typeof this.fileName !== 'function')? blobName(file): this.fileName(file) + const blob = (typeof this.fileName !== 'function')? blobName(file): this.fileName(file, req) file.stream.pipe(this.blobService.createWriteStreamToBlockBlob( this.containerName, blob,