fix upload problem when file exists

This commit is contained in:
nao-pon
2012-05-03 13:46:14 +09:00
parent eb8f7b7c6c
commit 6595ab3296
+1 -1
View File
@@ -1371,7 +1371,7 @@ abstract class elFinderVolumeDriver {
} elseif ($file['mime'] == 'directory') {
return $this->setError(elFinder::ERROR_NOT_REPLACE, $name);
}
$this->remove($file);
$this->remove($test);
} else {
$name = $this->uniqueName($dstpath, $name, '-', false);
}