Customize baseUrl and baseDir in CKFinder

前端 未结 1 1644
再見小時候
再見小時候 2021-01-20 05:47

We use CKEditor and CKFinder for Coldfusion in many of our CMS applications. These apps point to different sites on our server, so we want CKFinder setup to upload files to

相关标签:
1条回答
  • 2021-01-20 06:31

    Here's what I did. It's not perfect, but it works. With CF, there's a config.cfm file in the CKFinder directory where you set baseUrl and baseDir. There, I set the value of these two variables to two corresponding browser cookies. Then I set the cookie values in the headers of the different apps, so that they can reflect the app I'm in.

    The downside is if you have 2 apps open, only the one you opened most recently will have the correct cookie values set. If anyone knows of a better, similar (or not similar) way of doing this, I'd be interested.

    Thanks! Nick

    0 讨论(0)
提交回复
热议问题