mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 00:55:01 +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)) {
|
while ($this->storage->has($destination)) {
|
||||||
if ($overwrite) {
|
if ($overwrite) {
|
||||||
$this->deleteFile($destination);
|
$this->storage->delete($destination);
|
||||||
} else {
|
} else {
|
||||||
$destination = $this->upcountName($destination);
|
$destination = $this->upcountName($destination);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user