Skip to content

Commit

Permalink
remove deletes
Browse files Browse the repository at this point in the history
  • Loading branch information
f0x52 committed May 20, 2024
1 parent c06f6f8 commit 3bd1cf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/plugins/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3bd1cf1

Please sign in to comment.