mirror of
https://github.com/filegator/filegator.git
synced 2025-08-11 21:54:16 +02:00
fix file deletion error when overwrite on upload (#293)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user