deleting uploaded files

This is the right place to exchange ideas, thoughts with our community.
Note: Click here for Feature Requests or Bug Reports.

deleting uploaded files

Postby buggeriamold » Tue Feb 21, 2006 2:06 am

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
buggeriamold
 
Posts: 5
Joined: Tue Feb 21, 2006 2:06 am

RE: deleting uploaded files

Postby saul11 » Tue Feb 21, 2006 4:32 am

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)
Freelance webdeveloper, FCKeditor plugin developer. FCKeditor contributor.

FCKPlugins: http://www.saulmade.nl/FCKeditor/FCKPlugins.php
FCKSkins: http://www.saulmade.nl/FCKeditor/FCKSkins.php
FCKSnippets: http://www.saulmade.nl/FCKeditor/FCKSnippets.php
saul11
 
Posts: 633
Joined: Mon Jun 19, 2006 5:39 am
Location: NL

RE: deleting uploaded files

Postby kaeverens » Tue Feb 21, 2006 4:53 am

I'll do it for PHP. I've been looking for something simpler than the Konqueror port to tackle ;-)

Kae
kaeverens
 
Posts: 126
Joined: Thu Feb 08, 2007 10:51 pm

RE: deleting uploaded files

Postby cedric-ob » Tue Feb 21, 2006 7:17 am

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....
cedric-ob
 
Posts: 27
Joined: Wed Dec 21, 2005 10:03 am

RE: deleting uploaded files

Postby buggeriamold » Tue Feb 21, 2006 12:24 pm

Thanks folks looks like i will have to get writing!

Mark
buggeriamold
 
Posts: 5
Joined: Tue Feb 21, 2006 2:06 am

RE: deleting uploaded files

Postby greggp » Tue Feb 21, 2006 12:42 pm

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.
greggp
 
Posts: 24
Joined: Wed Nov 09, 2005 7:36 pm

RE: deleting uploaded files

Postby buggeriamold » Tue Feb 21, 2006 1:33 pm

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
buggeriamold
 
Posts: 5
Joined: Tue Feb 21, 2006 2:06 am

RE: deleting uploaded files

Postby xenden » Tue Feb 21, 2006 2:54 pm

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.
xenden
 
Posts: 321
Joined: Sat Apr 08, 2006 4:30 am

RE: deleting uploaded files

Postby kaeverens » Wed Feb 22, 2006 1:16 am

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
kaeverens
 
Posts: 126
Joined: Thu Feb 08, 2007 10:51 pm

RE: deleting uploaded files

Postby kaeverens » Wed Feb 22, 2006 2:03 pm

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
kaeverens
 
Posts: 126
Joined: Thu Feb 08, 2007 10:51 pm

Next

Return to FCKeditor 2.x

Who is online

Users browsing this forum: No registered users and 2 guests