From 70f486529d5047bff56157918b8d6d32d17730b2 Mon Sep 17 00:00:00 2001 From: Jay Yong Han Date: Tue, 5 Nov 2019 17:32:17 +0900 Subject: [PATCH] Update uploadhandler.js --- lib/uploadhandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/uploadhandler.js b/lib/uploadhandler.js index 070f018..babc3c9 100644 --- a/lib/uploadhandler.js +++ b/lib/uploadhandler.js @@ -146,8 +146,8 @@ module.exports = function (options) { var os = fs.createWriteStream(options.uploadDir() + '/' + fileInfo.name); is.on('end', function (err) { if (!err) { - fs.unlink(file.path); - generatePreviews(); + // fs.unlink(file.path); + // generatePreviews(); } finish(); });