Revision history [back]

click to hide/show revision 1
initial version

answered 2021-05-12 12:18:40 +0800

hawk gravatar image hawk

http://hawkphoenix.blogsp... ZK Team

By default, it only uploads to a folder inside a web application because a web application can only access the folders under its web context root.

To store the uploaded images to a folder out of web context root, you need to implement your own org.zkforge.ckez.CkezFileWriter and assign it by

((CKeditor)comp).setFileWriter(new MyCkezFileWriter("/mydisk/upload"));

Then you might also need a custom image browser template because you need to browse a folder out of web context root. You can reference the default one below to write your own:

ckez-4.14.0.1.jar/web/ckez/html/browse.zul

And specify your template path:

<ckeditor fileBrowserTemplate="fileBrowser.zul"/>

If you need commercial support, please content [email protected].

By default, it only uploads to a folder inside a web application because a web application can only access the folders under its web context root.

To store the uploaded images to a folder out of web context root, you need to implement your own org.zkforge.ckez.CkezFileWriter and assign it by

((CKeditor)comp).setFileWriter(new MyCkezFileWriter("/mydisk/upload"));

Then you might also need a custom image browser template because you need to browse a folder out of web context root. You can reference the default one below to write your own:

ckez-4.14.0.1.jar/web/ckez/html/browse.zul

And specify your template path:

<ckeditor fileBrowserTemplate="fileBrowser.zul"/>

If you need commercial dedicated support, please content contact [email protected].

By default, it only uploads to a folder inside a web application because a web application can only access the folders under its web context root.root. When you undeploy a web application, it's expected that the server will remove all its subfolder including your image uploading folder.

To store the uploaded images to a folder out of web context root, you need to implement your own org.zkforge.ckez.CkezFileWriter and assign it by

((CKeditor)comp).setFileWriter(new MyCkezFileWriter("/mydisk/upload"));

Then you might also need a custom image browser template because you need to browse a folder out of web context root. You can reference the default one below to write your own:

ckez-4.14.0.1.jar/web/ckez/html/browse.zul

And specify your template path:

<ckeditor fileBrowserTemplate="fileBrowser.zul"/>

You also need a servlet to handle the image URL after inserting an image.

If you need dedicated support, please contact [email protected].

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