KCFinder does not show dynamic routes

0

I am trying to integrate the KCFinder to my CKeditor editor, it loads everything, the problem occurs when I upload an image to the server.

The editor is integrating to a web platform with user system and login, the general idea is that each time a user uploads an image to the server that is stored in a private path that only the logged user can see, I have done several tests but without success, if someone has gone through this I would greatly appreciate the support.

CONFIG.PHP IN KCFINDER / CONF

$ _ CONFIG = array (

// GENERAL SETTINGS

'disabled' => false,
'uploadURL' => "/rsarchivos/userfiles/".$_usuario['usuario']."/", //users/" . $user['username'] . "/upload"
'uploadDir' => "",
'theme' => "default",

'types' => array(

// (F)CKEditor types
    'files'   =>  "",
//    'flash'   =>  "swf",
//   'images'  =>  "*img",
// TinyMCE types
//    'userid'    =>  "",
//    'media'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm",
//    'image'   =>  "*img",

),**

// THE FOLLOWING SETTINGS CAN NOT BE OVERRIDED WITH SESSION SETTINGS

'_normalizeFilenames' => false,
'_check4htaccess' => true,
//'_tinyMCEPath' => "/tiny_mce",

'_sessionVar' => &$_SESSION['KCFINDER'],
'_sessionLifetime' => 24,
'_sessionDir' => "/var/lib/php/session",
'_sessionDomain' => ".misitioweb.net",
'_sessionPath' => "/",

//'_cssMinCmd' => "java -jar /path/to/yuicompressor.jar --type css {file}",
//'_jsMinCmd' => "java -jar /path/to/yuicompressor.jar --type js {file}",

);

? >

CODE STARTING EDITOR

**                                                                                                                                                                                            // Replace the with a CKEditor                                                 // instance, using default configuration.                                                 CKEDITOR.replace ('editor1');

                                            </script>


                                        <?php
                                            $_SESSION['KCFINDER'] = array();
                                            $_SESSION['KCFINDER']['disabled'] = false; // Activate the uploader,
                                            $_SESSION['KCFINDER']['uploadURL'] = "/var/www/html/MISITIOWEB/rsarchivos/userfiles/";
                                            $_SESSION['fold_type'] = "";
                                            //$_SESSION['fold_type'] = '/rsarchivos/userfiles/'.$_usuario['userid']."/";
                                            //$_SESSION['fold_type'] =>  "*img swf flv avi mpg mpeg qt mov wmv asf rm", // Folder now dynamically defined in the application

                                        ?>**

CONFIG.JS EN CKEDITOR /

/**

* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.  * For licensing, see LICENSE.md or link  * /

CKEDITOR.editorConfig = function (config) {     // Define changes to default configuration here. For example:     // config.language = 'fr';     // config.uiColor = '# AADC6E';     config.filebrowserBrowseUrl = '/client2/kcfinder/browse.php?opener=ckeditor';     config.filebrowserImageBrowseUrl = '/client2/kcfinder/browse.php?opener=ckeditor'; // ORIGINAL config.filebrowserImageBrowseUrl = '/client2/kcfinder/browse.php?opener=ckeditor&type=images'     config.filebrowserFlashBrowseUrl = '/client2/kcfinder/browse.php?opener=ckeditor&type=flash';     config.filebrowserUploadUrl = '/client2/kcfinder/upload.php?opener=ckeditor&type=files';     config.filebrowserImageUploadUrl = '/client2/kcfinder/upload.php?opener=ckeditor&type=images';     config.filebrowserFlashUploadUrl = '/client2/kcfinder/upload.php?opener=ckeditor&type=flash';     // config.filebrowserBrowseUrl = '/client2/kcfinder/browse.php?type=files';     // config.filebrowserImageBrowseUrl = '/client2/kcfinder/browse.php?type=images'; };

    
asked by Neri Colon 28.02.2018 в 20:24
source

0 answers