0

CKeditor image upload

asked 2014-06-03 16:28:44 +0800

rgravel gravatar image rgravel
28 5

Hi,

We have a project that includes a ckeditor tag. Under the WebContent of this project, we have a folder called "media/images". So our tag is defined like that:

<ckeditor id="ckeditFreeText"
            filebrowserImageBrowseUrl="/media/images"
            filebrowserImageUploadUrl="/media/images" />

Users can upload images but the problem is that the "images" folder is deleted when we "undeploy" the application to deploy a new version. What is the best way to upload images somewhere and that is not impacted when when undeploy/deploy a new .WAR?

We are using ZK v6.5.5 and CKeditor (ckez.jar) v4.1.1.0

Thanks

delete flag offensive retag edit

1 Answer

Sort by » oldest newest most voted
1

answered 2014-06-05 00:14:54 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

updated 2014-06-05 06:18:13 +0800

chillworld gravatar image chillworld flag of Belgium
5367 4 9
https://github.com/chillw...

Hello rgravel, i think you needto create a custom file browser, look at these links:

File_Browser

Custom file browser:

Adding file browser

I hope that it helps you.

link publish delete flag offensive edit

Comments

the links are a bit strange because they contains parenthesis

mhj ( 2014-06-05 00:18:40 +0800 )edit

fixed it for you

chillworld ( 2014-06-05 06:18:24 +0800 )edit

thanks chillworld!

mhj ( 2014-06-05 16:30:48 +0800 )edit

Thanks but there is no Java version of CKFinder. As we don't have any PHP, ColdFusion, .ASP ou ASP.NET server, I don't think we can implement this solution. So you are telling me that the actual built-in file browser doesn't allowed us to browse a folder outside the project?

rgravel ( 2014-06-05 17:11:27 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-06-03 16:28:44 +0800

Seen: 27 times

Last updated: Jun 05 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More