For a new project I would like to create a client specific upload folder. Since I don't know who the clients will be I want the names of the folders to be generated when the clients profile is created.
For instance, when the profile of "Jack Magic" is created, I want to create an upload folder for him named /userfiles/25032009/jackmagic/
He and the profile manager would have access to this folder to share files.
I can create the folder names and store them in the same table i store the client profile.
I would like to know if I can use the CKFinder modules to create the actual folders and how would I "connect" the url postfix (client folder path) to CKFinder. I dont want other clients to have access to Jack Magic's folders.
Ideas are welcome,
Regards,
Peter
For instance, when the profile of "Jack Magic" is created, I want to create an upload folder for him named /userfiles/25032009/jackmagic/
He and the profile manager would have access to this folder to share files.
I can create the folder names and store them in the same table i store the client profile.
I would like to know if I can use the CKFinder modules to create the actual folders and how would I "connect" the url postfix (client folder path) to CKFinder. I dont want other clients to have access to Jack Magic's folders.
Ideas are welcome,
Regards,
Peter
Re: Client specific upload folder
Generally, the best solution is to use sessions: create baseUrl and baseDir variables dynamically in config file, based on session variables that are set when user logs in.
CKFinder will create the folder automatically if it does not exist.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+