buggeriamold's picture
Joined: 21/02/2006
Posts: 5
deleting uploaded files
Hi all,

Most things going, java connector etc but cant find a way or any info on how to delete a file / image through the editor after it has been uploaded by the editor. Am i stupid and missing somthing, or do i have to write some code. What do you folks do?

Mark
saul11's picture
Joined: 19/06/2006
Posts: 633
RE: deleting uploaded files
You're not stupid nor missing something... or we both are :p
Removing files is not possible through the FCKeditor. I never saw the possibility anywhere and I just checked the screenshots of the filemanager: http://mcpuk.net/fbxp/?page=screenshots. No remove button on them neither. So I guess someone will have to write it. A context menu within the filebrowser would be nice ;) (http://www.djwice.com/contextmenu.html and others via google probably)
kaeverens's picture
Joined: 08/02/2007
Posts: 126
RE: deleting uploaded files
I'll do it for PHP. I've been looking for something simpler than the Konqueror port to tackle ;-)

Kae
cedric-ob's picture
Joined: 21/12/2005
Posts: 27
RE: deleting uploaded files
Deleting files within FCKeditor is not very usefull I think.
It can be usefull sure, but :
Be carefull as your users will probably delete picture already linked in their posts, and perhaps this will create deadlink ....

But it is nice to have the possibility to turn on this future option....
kaeverens's picture
Joined: 08/02/2007
Posts: 126
RE: deleting uploaded files
Best to warn them, then ;-)

here's a start - haven't tied in the Rename and Delete functions yet, but the contextmenu code is written for Firefox (will do IE later).

http://verens.com/demos/FCKeditor/_samples/default.html
buggeriamold's picture
Joined: 21/02/2006
Posts: 5
RE: deleting uploaded files
Thanks folks looks like i will have to get writing!

Mark
greggp's picture
Joined: 09/11/2005
Posts: 24
RE: deleting uploaded files
My custom browser, available https://sourceforge.net/projects/lfobrowser has the ability to write and open files directly off the server that FCKeditor is running on. Adding a feature to delete would be trivial. I don't see a comprehensive solution for security in the editor itself so I decided not to add it when I first wrote the browser. I'm not talking about security from a "hacker" perspective as much as I am clients who delete things accidentally.

I can get it added in the next couple of days if you want but security would be up to you. Abd my browser only works with PHP on the backend.
buggeriamold's picture
Joined: 21/02/2006
Posts: 5
RE: deleting uploaded files
Thanks, but our backend is in java. In our case the ability to delete files is important, if the end use r deletes a file by mistake then that is unfortunate, but their own falt.

Mark
xenden's picture
Joined: 08/04/2006
Posts: 321
RE: deleting uploaded files
I think the mcpuk connector has delete links. It's pretty easy to hack it up to use whatever backend you are using. At least a good example of how someone else did it.
kaeverens's picture
Joined: 08/02/2007
Posts: 126
RE: deleting uploaded files
okay - I have a working rename and delete contextmenu for Firefox and PHP. I will get it working in IE tomorrow morning (only Linux machines here!), and for non-PHP servers, just read the changes I made, and paraphrase them in your own connectors.

the example is here:
http://verens.com/demos/FCKeditor/_samples/default.html

and the zipped filemanager/browser/default directory is here:
http://verens.com/demos/FCKeditor/edito ... 060222.bz2

well! that was certainly easier than porting to Konqueror!

Kae
didgiman's picture
Joined: 26/01/2007
Posts: 130
RE: deleting uploaded files
Hey,

That's great!!

One suggestion, maybe.
When changing the filename, it seems more logic to me that the original filename is by default provided in the dialog window.

In any case, great work!
Thanks!
kaeverens's picture
Joined: 08/02/2007
Posts: 126
RE: deleting uploaded files
good point Didgiman. Done.

now works in IE7 as well.

example:
http://verens.com/demos/FCKeditor/_samples/default.html

zipped directory:
http://verens.com/demos/FCKeditor/edito ... 060222.bz2

the important files are:
default/frmresourceslist.html
default/connectors/php/connector.php
default/connectors/php/commands.php

ignore all other files.

How do I get this integrated with the CVS version?

Kae
didgiman's picture
Joined: 26/01/2007
Posts: 130
RE: deleting uploaded files
Great stuff.

I'll try to have a ColdFusion version of this available as soon as possible.
monzsca's picture
Joined: 23/02/2006
Posts: 1
RE: deleting uploaded files
Kae, This is great.

Did you perhaps mean:
http://verens.com/demos/FCKeditor/edito ... 060223.bz2

Appears to work fine in IE6.

Maybe this could be added to frmfolders.html as well to allow folder deleting from the left pane.

Anyway, thanks and keep up the good work and post any updates.
buggeriamold's picture
Joined: 21/02/2006
Posts: 5
RE: deleting uploaded files
Very nice much better than the interface (with button) i came up with, looks like i will be chucking mine out and using yours!

Cheers
Mark
buggeriamold's picture
Joined: 21/02/2006
Posts: 5
RE: deleting uploaded files
Hi again, tryed downloading the .bz2 archive, when i decompressed it with bzip2 -d i only got one file, is this correct or should it have been a directory?

Mark
kaeverens's picture
Joined: 08/02/2007
Posts: 126
RE: deleting uploaded files
my bad - I always leave out the .tar bit. try unzipping it with "tar xf blah.bz2"

Kae
jpfour23's picture
Joined: 30/05/2006
Posts: 1
RE: deleting uploaded files
Is this still available. I would love to use it. But the zip is nowhere to be found.

jp
kaeverens's picture
Joined: 08/02/2007
Posts: 126
RE: deleting uploaded files
yes, it is available. The latest blog entry and demo on it is here:
http://verens.com/archives/2006/05/26/f ... -captions/

the zip is here:
http://verens.com/demos/FCKeditor/editor.tbz2
(note: you should probably unzip this into a tmp directory in case it overwrites some important files of yours).

I am no longer supporting the hack, though. I started a plugin with a new file manager which I intend to enhance well beyond that.

Blog entry and demo:
http://verens.com/archives/2006/05/29/a ... e-tagging/

plugin zip:
http://verens.com/demos/fckeditor/2.3b/ ... 60529.tbz2

have fun!
Kae
jara06's picture
Joined: 12/06/2006
Posts: 12
RE: deleting uploaded files
Hi Kae

I love your work, great job!
It is some interesting ideas you've got, and Im looking forward to see it. Havent got time atm. to help though :(

May I ask, will you be releasing new versions along with new versions of the editor or just as time goes by ?
Any choice are great :)

Cheers mate!
kaeverens's picture
Joined: 08/02/2007
Posts: 126
RE: deleting uploaded files
thanks, Janich. feels good to be appreciated!

i won't be putting any further work into hacking the official file manager, but I'm working on a plugin file manager which will do everything the current one does, plus more (built-in search, mini plain-text editor, javascript compressor, api hooks for developers, ...).

I have a week off work starting next wednesday, so will be putting some time into this. hopefully have a working 1.0 release by the week after. I'll announce it here.

Kae
peter vermeulen's picture
Joined: 27/07/2007
Posts: 7
Re: deleting uploaded files
Does anyonw still have the download available,.. the download links on Kae Verens site dont seem to work anymore.

Regards,

Peter
gkista's picture
Joined: 09/06/2009
Posts: 3
Re: deleting uploaded files
If anybody have the downloads please...!
The links does not work anymore...
Thanks!
quangvo's picture
Joined: 16/06/2009
Posts: 3
Re: deleting uploaded files
At first it give me a headache because I dont know how to implement this delete function. But finally I know how to do it using this tips http://www.itjungles.com/dotnet/how-to-delete-uploaded-file-from-fckeditor