IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques & Frameworks Discussion :

ckeditor probleme affichage image serveur v2 important


Sujet :

Bibliothèques & Frameworks

  1. #1
    Membre habitué
    Inscrit en
    Janvier 2008
    Messages
    1 159
    Détails du profil
    Informations forums :
    Inscription : Janvier 2008
    Messages : 1 159
    Points : 149
    Points
    149
    Par défaut ckeditor probleme affichage image serveur v2 important
    Bonjour,

    voila j'arrive à telecharger l'image sur mon serveru avec ckeditor et kcfinder mais lors de l'affichage erreur d'affichage.

    arborescence :

    dossier backend
    ------------>dossier utilitaires
    ---------------------------------->dossier kcfinder
    ---------------------------------->dossier ckeditor
    ------------>dossier upload_backend


    Nom : ecran.png
Affichages : 168
Taille : 27,8 Ko

    voila le code:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    <?php
     
    /** This file is part of KCFinder project
      *
      *      @desc Base configuration file
      *   @package KCFinder
      *   @version 2.51
      *    @author Pavel Tzonkov <pavelc@users.sourceforge.net>
      * @copyright 2010, 2011 KCFinder Project
      *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
      *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
      *      @link http://kcfinder.sunhater.com
      */
     
    // IMPORTANT!!! Do not remove uncommented settings in this file even if
    // you are using session configuration.
    // See http://kcfinder.sunhater.com/install for setting descriptions
     
    $_CONFIG = array(
     
        'disabled' => false,
        'denyZipDownload' => false,
        'denyUpdateCheck' => false,
        'denyExtensionRename' => false,
     
        'theme' => "oxygen",
     
        'uploadURL' 			=> "http://www.test.fr/backend/upload_backend",	// PERSO !
        'uploadDir' 			=> "http://www.test.fr/backend/upload_backend",
     
     
        'dirPerms' => 0755,
        'filePerms' => 0644,
     
        'access' => array(
     
            'files' => array(
                'upload' => true,
                'delete' => true,
                'copy' => true,
                'move' => true,
                'rename' => true
            ),
     
            'dirs' => array(
                'create' => true,
                'delete' => true,
                'rename' => true
            )
        ),
     
        'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",
     
        'types' => array(
     
            // CKEditor & FCKEditor types
            'files'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm mp4",
            'flash'   =>  "swf, mp4",
            'images'  =>  "*img",
     
            // TinyMCE types
            'file'    =>  "swf flv avi mpg mpeg qt mov wmv asf rm mp4",
            'media'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm mp4",
            'image'   =>  "*img",
        ),
     
        'filenameChangeChars' => array(/*
            ' ' => "_",
            ':' => "."
        */),
     
        'dirnameChangeChars' => array(/*
            ' ' => "_",
            ':' => "."
        */),
     
        'mime_magic' => "",
     
        'maxImageWidth' => 0,
        'maxImageHeight' => 0,
     
        'thumbWidth' => 100,
        'thumbHeight' => 100,
     
        'thumbsDir' => ".thumbs",
     
        'jpegQuality' => 90,
     
        'cookieDomain' => "",
        'cookiePath' => "",
        'cookiePrefix' => 'KCFINDER_',
     
        // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
        '_check4htaccess' => true,
        //'_tinyMCEPath' => "/tiny_mce",
     
        '_sessionVar' => &$_SESSION['KCFINDER'],
        //'_sessionLifetime' => 30,
        //'_sessionDir' => "/full/directory/path",
     
        //'_sessionDomain' => ".mysite.com",
        //'_sessionPath' => "/my/path",
    );
     
    ?>
    et le config.js:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    <?php
     
    /** This file is part of KCFinder project
      *
      *      @desc Base configuration file
      *   @package KCFinder
      *   @version 2.51
      *    @author Pavel Tzonkov <pavelc@users.sourceforge.net>
      * @copyright 2010, 2011 KCFinder Project
      *   @license http://www.opensource.org/licenses/gpl-2.0.php GPLv2
      *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
      *      @link http://kcfinder.sunhater.com
      */
     
    // IMPORTANT!!! Do not remove uncommented settings in this file even if
    // you are using session configuration.
    // See http://kcfinder.sunhater.com/install for setting descriptions
     
    $_CONFIG = array(
     
        'disabled' => false,
        'denyZipDownload' => false,
        'denyUpdateCheck' => false,
        'denyExtensionRename' => false,
     
        'theme' => "oxygen",
     
        'uploadURL' 			=> "http://www.test.fr/backend/upload_backend",	// PERSO !
        'uploadDir' 			=> "http://www.test.fr/backend/upload_backend",
     
     
        'dirPerms' => 0755,
        'filePerms' => 0644,
     
        'access' => array(
     
            'files' => array(
                'upload' => true,
                'delete' => true,
                'copy' => true,
                'move' => true,
                'rename' => true
            ),
     
            'dirs' => array(
                'create' => true,
                'delete' => true,
                'rename' => true
            )
        ),
     
        'deniedExts' => "exe com msi bat php phps phtml php3 php4 cgi pl",
     
        'types' => array(
     
            // CKEditor & FCKEditor types
            'files'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm mp4",
            'flash'   =>  "swf, mp4",
            'images'  =>  "*img",
     
            // TinyMCE types
            'file'    =>  "swf flv avi mpg mpeg qt mov wmv asf rm mp4",
            'media'   =>  "swf flv avi mpg mpeg qt mov wmv asf rm mp4",
            'image'   =>  "*img",
        ),
     
        'filenameChangeChars' => array(/*
            ' ' => "_",
            ':' => "."
        */),
     
        'dirnameChangeChars' => array(/*
            ' ' => "_",
            ':' => "."
        */),
     
        'mime_magic' => "",
     
        'maxImageWidth' => 0,
        'maxImageHeight' => 0,
     
        'thumbWidth' => 100,
        'thumbHeight' => 100,
     
        'thumbsDir' => ".thumbs",
     
        'jpegQuality' => 90,
     
        'cookieDomain' => "",
        'cookiePath' => "",
        'cookiePrefix' => 'KCFINDER_',
     
        // THE FOLLOWING SETTINGS CANNOT BE OVERRIDED WITH SESSION CONFIGURATION
        '_check4htaccess' => true,
        //'_tinyMCEPath' => "/tiny_mce",
     
        '_sessionVar' => &$_SESSION['KCFINDER'],
        //'_sessionLifetime' => 30,
        //'_sessionDir' => "/full/directory/path",
     
        //'_sessionDomain' => ".mysite.com",
        //'_sessionPath' => "/my/path",
    );
     
    ?>
    merci pour votre aide.

  2. #2
    Invité
    Invité(e)
    Par défaut
    Bonjour,

    lis la doc : http://kcfinder.sunhater.com/install

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    'uploadURL' => "upload",
    URL path to main directory for file uploads. In the example above the path is relative to KCFinder main directory.
    Other examples:
    • /files/upload - relative to the site root
    • ../upload - 'upload' directory located in KCFinder parent directory
    • httр://yourdomain.com/upload - absolute URL path.
    This setting is used when KCFinder can't automatically detect its local filesystem path to the folder specified in uploadURL setting. Change this setting when KCFinder can't fetch the local filesystem path automatically.
    DONC, dans ton cas de figure (et sauf erreur de ma part) :
    (en absolu) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
        'uploadURL' 			=> "http://www.test.fr/backend/upload_backend",	// PERSO !
        'uploadDir' 			=> "",
    Ou (en relatif) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
        'uploadURL' 			=> "../../upload_backend",	// PERSO !
        'uploadDir' 			=> "",

Discussions similaires

  1. [Etat]Probleme affichage image dans états
    Par bibichris dans le forum IHM
    Réponses: 11
    Dernier message: 18/09/2013, 17h17
  2. [wSS 3] Probleme affichage Images
    Par vds2302 dans le forum SharePoint
    Réponses: 4
    Dernier message: 07/11/2007, 16h54
  3. probleme affichage image
    Par kobrapercussions dans le forum AWT/Swing
    Réponses: 13
    Dernier message: 04/04/2007, 19h10
  4. probleme affichage image
    Par craryb dans le forum MFC
    Réponses: 4
    Dernier message: 26/03/2007, 17h20
  5. Probleme affichage image dans picturebox
    Par Julien1987 dans le forum Windows Forms
    Réponses: 3
    Dernier message: 24/01/2007, 14h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo