fix file deletion error when overwrite on upload (#293)

This commit is contained in:
IWIN
2021-12-31 18:31:24 +08:00
committed by GitHub
parent e22a52d60f
commit 29dccea0b5

View File

@@ -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);
}