Large tree, too many files

Added by Gabor Biro 10 months ago

Hi Guys!
Is there any working solution for large folder tree with lot of files?
I got back "invalid backend configuration".
When i was pointing the small folder, then everything is working normally.


Replies (17)

RE: Large tree, too many files - Added by Troex Nevelin 10 months ago

This is major issue with 1.x version, that cannot be fixed due to design.

Version 2.0 is not affected by this problem check the demo of 2.0 beta http://elfinder.org/

RE: Large tree, too many files - Added by Dmitry Levashov 10 months ago

Use firebug to see server response.
What connector you use? php?

RE: Large tree, too many files - Added by Gabor Biro 10 months ago

Thanks for quick reply.

Yes i'm using PHP connector (the actual version, but i was modified a little, json encode function added manually because it was missing on my system (RedHat 5.3 PHP 5.1.6). I tried to bypass md5 coding, but not helped.
The server response looks like normal even if a big tree (as i said the small file number it was working normally) the js code is 200 when it fail.

I checked out my client folder trees, the average file number is 6000-8000 files, so i think the "all in" tree reading is not a good way...

But anyway "otsen horosaja rabota!" :)

RE: Large tree, too many files - Added by Gabor Biro 10 months ago

I will going to check new version. Could You give me the example how to integrate the new version to the elrte?

RE: Large tree, too many files - Added by Dmitry Levashov 10 months ago

1 You can create/destroy elFinder on every icon click

        $('selector').elrte({
             // ... elrte options
             fmOpen : function(callback) {
                $('<div />').dialogelfinder({
                   url : 'connectors/php/connector.php',
                   lang : 'ru',
                      commandsOptions : {
                        getfile : {
                            onlyURL  : true,
                            // allow to return multiple files info
                            multiple : false,
                            // allow to return filers info
                            folders  : false,
                            // action after callback (""/"close"/"destroy")
                            oncomplete : 'destroy'
                        }
                    }
                   getFileCallback : callback // передаем callback файловому менеджеру
               })
            }
         })

2 or create dialog once

        var dialog;

        $('selector').elrte({
             // ... elrte options
             fmOpen : function(callback) {

                if (!dialog) {
                    // create new elFinder
                    dialog = $('<div />').dialogelfinder({
                       url : 'connectors/php/connector.php',
                       lang : 'ru',
                          commandsOptions : {
                            getfile : {
                                onlyURL  : true,
                                // allow to return multiple files info
                                multiple : false,
                                // allow to return filers info
                                folders  : false,
                                // action after callback (""/"close"/"destroy")
                                oncomplete : 'close'
                            }
                        }
                       getFileCallback : callback // передаем callback файловому менеджеру
                   })
                } else {
                    dialog.dialogelfinder('open')
                }
            }
         })

RE: Large tree, too many files - Added by Gabor Biro 10 months ago

I got back "[object Object]" rather then file url.

RE: Large tree, too many files - Added by Dmitry Levashov 10 months ago

set options.commandsOptions.onlyURL = true

RE: Large tree, too many files - Added by Gabor Biro 10 months ago

not working, this is the code what im tried:

 commandsOptions : {
                   getfile : { onlyURL  : true, multiple : false, folders  : false, oncomplete : 'close' }
                   }

RE: Large tree, too many files - Added by Karcsics Tibor 9 months ago

Because there is no such variable.
The simple way, modify elrte source.
Find fmOpen methods and replace url to url.url.

This solution is only temporary, hopefully will solve the problem.

RE: Large tree, too many files - Added by Gabor Biro 9 months ago

Thanks Tibor, that was helped.

RE: Large tree, too many files - Added by ig mak 6 months ago

Gabor Biro helps me to solve the same problem but I still have some:
-If I have folder in files folder after file select file url is like: http://mysite/files/fgds\Winter.jpg (what can I do for changeing \ to /).
-The same [object Object] problem with flash file input

RE: Large tree, too many files - Added by Troex Nevelin 6 months ago

What version elFinder are you using? I recommend using the one from git, beta version is outdated

RE: Large tree, too many files - Added by ig mak 6 months ago

First of all thank You for elRTE and elFinder.

elRTE 1.3 and elFinder 1.2 combination is working (because of large folder tree with lot of files problem decided to use elFinder 2).
Using version elFinder 2.0 (from http://elfinder.org/ 2.0 beta — July 10th, 2011).Trying to combine elRTE 1.3 and elFinder 2
We have modyfied elrte.js (fmopen method url to url.url).

Is it possible to combine this two with my code (please see attached).

Do You have elFinder 2 new version? From which link to download?

prtscr.jpg (298.8 kB)

RE: Large tree, too many files - Added by Murray Ward 5 months ago

@Karcsics, can you please expand on the changes from url to url.url as I too am getting the [object Object] issue. I have elFinder working and it's damn beautiful, and elrte is wicked also, now I'm trying to integrate them both into the Modx Revolution CMS framework. I presume I'm editing the elrte.full.js file? But I'm lost at this point. Can you please advise which lines should be altered and to what exactly. Many thanks.

RE: Large tree, too many files - Added by Troex Nevelin 5 months ago

See the wiki example https://github.com/Studio-42/elFinder/wiki/Integration-with-elRTE-1.x

Note these docs are for the latest git version of elFinder, they may not work for beta release of elFinder 2.x

(1-17/17)