From 3bd1cf17826895501c735bfaa8630d2111795d99 Mon Sep 17 00:00:00 2001 From: f0x Date: Mon, 20 May 2024 22:17:32 +0200 Subject: [PATCH] remove deletes --- server/plugins/uploader.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/plugins/uploader.ts b/server/plugins/uploader.ts index e75306b5..7c5d80a6 100644 --- a/server/plugins/uploader.ts +++ b/server/plugins/uploader.ts @@ -107,9 +107,9 @@ class SharpDiskStorage implements multer.StorageEngine { _removeFile(req: Request, file: Express.Multer.File, callback: (error: Error | null) => void): void { const p = file.path; - delete file.destination; - delete file.filename; - delete file.path; + // delete file.destination; + // delete file.filename; + // delete file.path; fs.unlink(p, callback); }