Opened 19 years ago
Closed 15 years ago
#408 closed New Feature (wontfix)
Overwrite Uploaded Files
| Reported by: | redeye | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | File Browser | Version: | |
| Keywords: | HasPatch | Cc: |
Description
What about a Request for Overwriting the uploaded Files instead of Incrementing a number which is added to the Filename? My Userfiles Folders are full of different Files in different Versions.
Attachments (2)
Change History (12)
comment:1 Changed 18 years ago by
| Component: | General → File Browser |
|---|
comment:2 Changed 18 years ago by
comment:3 Changed 18 years ago by
$ConfigOverwriteFiles? should actually read
$Config(OPEN BRACKET SINGLE QUOTE)OverwriteFiles(SINGLE QUOTE CLOSE BRACKET)
comment:4 Changed 18 years ago by
| Keywords: | HasPatch added |
|---|
Changed 17 years ago by
Changed 17 years ago by
| Attachment: | 408.2.patch added |
|---|
comment:5 Changed 17 years ago by
| Keywords: | Review? added |
|---|
comment:6 Changed 17 years ago by
| Keywords: | Review- added; Review? removed |
|---|
I think that there was another ticket to control the overwriting, including the option to rename the exiting file.
another issue is that this is done only for PHP, so other people will ask for the same behavior in their servers.
What happens if the permissions of the existing file doesn't allow to overwrite it?
the what's new entry is missing.
comment:7 Changed 17 years ago by
comment:8 Changed 17 years ago by
Let's leave #306 closed. This ticket can be the reference for the overwrite feature.
comment:9 Changed 17 years ago by
Where's the patch for ASP? Will this be included in the 3.0 version of FCKEditor?
comment:10 Changed 15 years ago by
| Resolution: | → wontfix |
|---|---|
| Status: | review_failed → closed |
The file browser is now distributed as an external application CKFinder, so the built-in filemanager is no longer maintained.
Let's trace this feature request on the CKFinder forum: http://cksource.com/forums/viewtopic.php?f=5&t=7416

This is actually an easy fix. Just do the following:
In editor/filemanager/browser/default/connectors/php/config.php add the line: $ConfigOverwriteFiles?=1;
Then, in editor/filemanager/browser/default/connectors/php]# vi commands.php change: if ( is_file( $sFilePath ) ) to if ( $ConfigOverwriteFiles?!=1 && is_file( $sFilePath ) )