cross domain connector (invalid backend configuration)

Added by yosafat wijaya 11 months ago

Hi,
Im trying to implement elFinder on my site.

i put elfinder here and it works just fine:
http://script.mywebsite.com/js/elfinder/elfinder.php.html

then, i want to call it from here but i get an "invalid backend configuration":
http://public.mywebsite.com/elfinder.html

here's the code for elfinder.html:

        $().ready(function() {

            var f = $('#finder').elfinder({
                url : 'http://www.script.mywebsite.com/js/elfinder/connectors/php/connector.php',
                lang : 'en',

                editorCallback : function(url) {
                    if (window.console && window.console.log) {
                        window.console.log(url);
                    } else {
                        alert(url);
                    }

                },
                closeOnEditorCallback : true
                // docked : true,
                // dialog : {
                //     title : 'File manager',
                //     height : 500
                // }
            })
            // window.console.log(f)
            $('#close,#open,#dock,#undock').click(function() {
                $('#finder').elfinder($(this).attr('id'));
            })

        })

this is my connector.php:

    'root'            => '../../../../../gallery/images/uploads/',// path to root directory
    'URL'             => 'http://www.gallery.mywebsite.com/images/uploads/', // root directory URL
    'rootAlias'       => 'my Gallery',       // display this instead of root directory name
    'mimeDetect'       => 'internal',

i would greatly appreaciate for any helps....
thx b4...


Replies (1)

SOLVED - Added by yosafat wijaya 11 months ago

Now it works....
I search google and found it here:
http://elrte.org/redmine/boards/2/topics/2952

Then i realized, it was just a few thread before mine...

(1-1/1)