I've been researching an advanced integration with ckfinder, ckeditor, and my Play app and am nearing the end of my rope. Any help/hint would be appreciated.
Note: Simple ckeditor and ckfinder integration was really simple (installing them in a tomcat instance; have the play app running; use apache as proxy to both).
My Goal (and challenge): In that I can use ckfinder and ckeditor in my application with the javascript integration method with a single upload base folder, the problem/goal that I'm trying to solve/achieve is that I want to provide my users with secure (private) 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. It would be nice to continue to use only the javascript integration method, but I understand that may not be possible.
I've found examples of what seems like people accomplishing this in PHP (see this one as a good example: http://blog.jambura.com/2011/02/01/priv ... -ckfinder/).
Anyone with a hint as to how to accomplish this in my setup would be very helpful. It seems as though I need to wrap or modify or include the Java version of ckfinder or perhaps even write a very simple PHP wrapper / app
Sun, 08/26/2012 - 13:42
#1
Re: Integration with Play app and secure or private user fol
Seems that the answer thus far has been a session variable in ckfinder (http://stackoverflow.com/questions/3049 ... h-ckfinder).
In that I can't share session, perhaps a 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?
Re: Integration with Play app and secure or private user fol
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+