[2.0] ckfinder and ckeditor integration

256 views
Skip to first unread message

Joe Wyrembelski

unread,
Aug 25, 2012, 9:01:58 AM8/25/12
to play-fr...@googlegroups.com
I've been researching an advanced integration with ckfinder and ckeditor and am nearing the end of my rope.  Any help/hint would be appreciated. I've emailed the cksource team in Poland for assistance, and will post what I find out.

Note: Simple ckeditor and ckfinder integration is really simple (installing them in a tomcat instance; have the play app running; use apache as proxy to both).

My Goal (and challenge): The fundamental problem that I'm trying to solve is that I want to provide my users with secure upload folders in ckfinder ... so that user A uploads files into /userfiles/A/ and user B uploads files into /userfiles/B/ ... and user A is not allowed to see /userfiles/B/ or know it exists (and vice versa). Very standard use case, I'm sure.

What I've found: Tons of good examples of how to accomplish this in PHP (see this one as a good example) and a few in the Java space (see this one as a partial example).

What I think:
I either need to figure out how to extend the Java version of ckfinder and mash it into my play app so as to share session like the PHP folks OR I need to maybe write a simple application wrapper around ckfinder (yuck).

Any help or suggestions (even alternates to ckfinder and ckeditor) would be great.


Joe Wyrembelski

unread,
Aug 26, 2012, 8:00:38 AM8/26/12
to play-fr...@googlegroups.com
Seems that the answer thus far has been a session variable in ckfinder (http://stackoverflow.com/questions/3049411/private-upload-folders-for-each-user-with-ckfinder). 

In that I can't share session, perhaps a shared cookie is possible? In that my applications (the ckfinder app and my play app) will both be proxied by an apache server (and therefore have the same domain) it would seem that they could share the same cookie.  My play app could write a cookie that contains the folder name and then the ckfinder app could read that cookie and use the value in the baseDir and baseUrl calculation.

Thoughts?  Suggestions as to how to approach?
Reply all
Reply to author
Forward
0 new messages