protected function get_unique_filename($file_path, $name, $size, $type, $error, $index, $content_range) { if ($this->fm->config['upload']['overwrite']) { return $name; } return parent::get_unique_filename($file_path, $name, $size, $type, $error, $index, $content_range); }