Hi everyone!
I'm using the CKFinder in asp.net mvc application.
In order to set the BaseUrl in config.ascx, I need to pass the base url via Session variable.
However, it's not very good approach since requires memory on the server and doesn't allow opening two CKFinders with different base urls for the same user.
Is there any other way to pass base url to CKFinder?
Sincerely,
Andrii
I'm using the CKFinder in asp.net mvc application.
In order to set the BaseUrl in config.ascx, I need to pass the base url via Session variable.
However, it's not very good approach since requires memory on the server and doesn't allow opening two CKFinders with different base urls for the same user.
Is there any other way to pass base url to CKFinder?
Sincerely,
Andrii
Re: Pass BaseUrl to CKFinder
The SetConfig() method in config.ascx is called for every CKFinder that is opened. You can set BaseUrl in there. Is that a solution ?
Or else, why do you need to pass the BaseUrl via Session ? I assume you can access your business objects, current user et cetera from config.ascx just as well as from anywhere else in your application.
hope this helps...
Arjan
Re: Pass BaseUrl to CKFinder
This would be a security threat. However as of CKFinder 2.0.1 if you assign a specific "id" to CKFinder instance, it will be passed to the server connector. You can use it in config.ascx to change baseUrl / baseDir dynamically based on the id. Unfortunately this will be possible in the next 2.x release (it is working now in 1.4.3).