You can change your side of the PHP script server so that the files are overwritten instead of creating a new unique file name. Just change the get_file_name load handler class function:
Original Function:
protected function get_file_name($file_path, $name, $size, $type, $error, $index, $content_range) { $name = $this->trim_file_name($file_path, $name, $size, $type, $error, $index, $content_range); return $this->get_unique_filename( $file_path, $this->fix_file_extension($file_path, $name, $size, $type, $error, $index, $content_range), $size, $type, $error, $index, $content_range ); }
change this to the following:
protected function get_file_name($file_path, $name, $size, $type, $error, $index, $content_range) { $name = $this->trim_file_name($file_path, $name, $size, $type, $error, $index, $content_range); return $name; }
Thus, the existing file will be overwritten if the downloaded file name is the same as the existing file on your server.