Is it possible to force the file upload in the file manager to overwrite any existing file with the same name?
I would like to use it to update a stats PDF file every month. The file used(linked) in many pages on the site. It would be great if I could upload a new file using the file browser and overwrite last months file.
I would like to use it to update a stats PDF file every month. The file used(linked) in many pages on the site. It would be great if I could upload a new file using the file browser and overwrite last months file.

Re: Overwrite File Names when uploading
Re: Overwrite File Names when uploading
Re: Overwrite File Names when uploading
In:
fckeditor/editor/filemanager/browser/default/connectors/php
there is a commands.php file. Towards the end of the file there is an if statement that does the checking/renaming. Comment part of that code out as follows:
while ( true ) { $sFilePath = $sServerDir . $sFileName ; //if ( is_file( $sFilePath ) ) //{ // $iCounter++ ; // $sFileName = RemoveExtension( $sOriginalFileName ) . '(' . $iCounter . ').' . $sExtension ; // $sErrorNumber = '201' ; //} //else //{ move_uploaded_file( $oFile['tmp_name'], $sFilePath ) ; if ( is_file( $sFilePath ) ) { $oldumask = umask(0) ; chmod( $sFilePath, 0777 ) ; umask( $oldumask ) ; } break ; //} }I was able to upload a few files that had the same name without checking/error. HTH
Re: Overwrite File Names when uploading
fckeditorInstance.UploadOverwrite = true;
Re: Overwrite File Names when uploading