From 29dccea0b5ee20860cf50186653086731393e506 Mon Sep 17 00:00:00 2001 From: IWIN Date: Fri, 31 Dec 2021 18:31:24 +0800 Subject: [PATCH] fix file deletion error when overwrite on upload (#293) --- backend/Services/Storage/Filesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Services/Storage/Filesystem.php b/backend/Services/Storage/Filesystem.php index a26f246..26720ac 100644 --- a/backend/Services/Storage/Filesystem.php +++ b/backend/Services/Storage/Filesystem.php @@ -168,7 +168,7 @@ class Filesystem implements Service while ($this->storage->has($destination)) { if ($overwrite) { - $this->deleteFile($destination); + $this->storage->delete($destination); } else { $destination = $this->upcountName($destination); }