Closed lpfeup closed 5 years ago
calls to MulterAzureStorage._removeFile fail with the following error:
MulterAzureStorage._removeFile
ArgumentNullError: Required argument blob for function deleteBlobIfExists is not defined
This line is the culprit: https://github.com/symphonicc/multer-azure-blob-storage/blob/9d6e3d7e0e8bba16e4dd922862964cdef6b05f37/src/MulterAzureStorage.ts#L254
MulterAzureStorage._deleteBlobIfExists should use file.blobName instead of file.filename, since filename is a property specific to multer disk storage (https://github.com/expressjs/multer/blob/master/storage/disk.js)
MulterAzureStorage._deleteBlobIfExists
file.blobName
file.filename
filename
Fixed thanks to @lpfeup
calls to
MulterAzureStorage._removeFile
fail with the following error:This line is the culprit: https://github.com/symphonicc/multer-azure-blob-storage/blob/9d6e3d7e0e8bba16e4dd922862964cdef6b05f37/src/MulterAzureStorage.ts#L254
MulterAzureStorage._deleteBlobIfExists
should usefile.blobName
instead offile.filename
, sincefilename
is a property specific to multer disk storage (https://github.com/expressjs/multer/blob/master/storage/disk.js)