New config param: overwrite_on_upload

This commit is contained in:
Milos Stojanovic
2020-03-23 13:37:54 +01:00
parent 0765958729
commit 8330fa86bc
7 changed files with 43 additions and 6 deletions

View File

@@ -182,8 +182,8 @@ class FileController
fwrite($stream, $content);
rewind($stream);
$res = $this->storage->deleteFile($path.$this->separator.$name);
$res = $this->storage->store($path, $name, $stream);
$this->storage->deleteFile($path.$this->separator.$name);
$this->storage->store($path, $name, $stream);
if (is_resource($stream)) {
fclose($stream);