Opened 17 years ago

Closed 13 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)

408.patch (876 bytes) - added by Artur Formella 16 years ago.
408.2.patch (890 bytes) - added by Artur Formella 16 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 17 years ago by Alfonso Martínez de Lizarrondo

Component: GeneralFile Browser

comment:2 Changed 17 years ago by Brad Duell

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 ) )

comment:3 Changed 17 years ago by Brad Duell

$ConfigOverwriteFiles? should actually read

$Config(OPEN BRACKET SINGLE QUOTE)OverwriteFiles(SINGLE QUOTE CLOSE BRACKET)

comment:4 Changed 16 years ago by Wojciech Olchawa

Keywords: HasPatch added

Changed 16 years ago by Artur Formella

Attachment: 408.patch added

Changed 16 years ago by Artur Formella

Attachment: 408.2.patch added

comment:5 Changed 16 years ago by Artur Formella

Keywords: Review? added

comment:6 Changed 16 years ago by Alfonso Martínez de Lizarrondo

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 16 years ago by Artur Formella

I found #306. It is closed as duplicate of "fixed" issue, but overwriting is missing. I think we should reopen #306 and close this ticket as duplicate.

comment:8 Changed 16 years ago by Frederico Caldeira Knabben

Let's leave #306 closed. This ticket can be the reference for the overwrite feature.

comment:9 Changed 15 years ago by bigsimpfan

Where's the patch for ASP? Will this be included in the 3.0 version of FCKEditor?

comment:10 Changed 13 years ago by Wiktor Walc

Resolution: wontfix
Status: review_failedclosed

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

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy