Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7930147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:19:41+00:00 2026-06-03T20:19:41+00:00

I am using CKEditor with KCFinder – i’d like to have personal upload files

  • 0

I am using CKEditor with KCFinder – i’d like to have personal upload files based on a dynamic value.

I’d like to dynamically change the folder that users can upload based on a SESSION value once they are logged in.

Once logged in i’d like to restrict the folder that a user can access via the KCFinder plugin
So eg..

User abc their path would be abc/images
User foo their path would be foo/images
User abc cannot see foo's images & vice-versa
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T20:19:42+00:00Added an answer on June 3, 2026 at 8:19 pm

    I had the same issue and to make things worse it depends on who logged in, administrator or a standard member.

    Granted I integrated it into TinyMCE but I think the principles are the same

    Here is my solution to the problem

    My folder structure is

    /my_uploads/media
    
    /my_uploads/media/member_folder
    
    1. Initialise the php session at the top of the config.php file

      session_start()

    2. Edit the ‘types’ => array and comment out all the different ‘types’

      // CKEditor & FCKEditor types
      // 'files'   =>  "",
      // 'flash'   =>  "swf",
      // 'images'  =>  "*img",
      
      // TinyMCE types
      // 'files'    =>  "",
      // 'media'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm",
       // 'image'   =>  "*img",
      
    3. Add the following ‘type’ to the array

      $_SESSION[‘fold_type’] => “*img swf flv avi mpg mpeg qt mov wmv asf rm”,

    4. Save your config.php file

    5. Open your application page where you initialise your editor and call KCFinder

    6. Before initialising your editor, add the following lines declaring the various KCFinder variables

      $_SESSION['KCFINDER'] = array();
      $_SESSION['KCFINDER']['disabled'] = false; // Activate the uploader,
      $_SESSION['KCFINDER']['uploadURL'] = "/uploads"; 
      $_SESSION['fold_type'] = "media"; 
      

    or

        $_SESSION['KCFINDER'] = array();
        $_SESSION['KCFINDER']['disabled'] = false; // Activate the uploader,
        $_SESSION['KCFINDER']['uploadURL'] = "/my_uploads/media/Members";
        $_SESSION['fold_type'] = "member_account_number_pulled_from_secure_session_variable";
    

    7 Leave the line where you call the uploader like this;

       file: '../tiny_mce/plugins/kcfinder/browse.php?opener=tinymce',
    

    Set upload folder dynamically for KCFinder

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using CKEditor and would like to be able to allow users to upload
Using CKEditor (combined with KCFinder for file upload), when I use the browse button
I am using CKEditor, jQuery and jQuery form plugin and I would like to
Using ckeditor users can add a description to their listing. Some descriptions have a
I'm using CKEditor to allow editing of template-based HTML newsletters with inline CSS. Each
I would like giving my users a limited editor, using the great CKEditor. I
I'm using CKEditor in Markdown format to submit user created content. I would like
I am using CKEditor/CKFinder as wysiwyg editor on my MVC.NET site. I have set
I am using ckeditor in drupal and add some html tags in it like
I have a Problem conecerning FOP. I am using CKEditor to create an XSL-Fo

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.