diff --git a/services/filestore/app/coffee/LocalFileWriter.coffee b/services/filestore/app/coffee/LocalFileWriter.coffee index 2ecb3885df..47b2b91e77 100644 --- a/services/filestore/app/coffee/LocalFileWriter.coffee +++ b/services/filestore/app/coffee/LocalFileWriter.coffee @@ -27,6 +27,8 @@ module.exports = stream.pipe writeStream deleteFile: (fsPath, callback)-> + if !fsPath? or fsPath == "" + return callback() logger.log fsPath:fsPath, "removing local temp file" fs.unlink fsPath, callback