simogeo / Filemanager

An open-source file manager released under MIT license. Up-to-date for PHP connector. This package is DEPRECATED. Now, please use RichFileManager available at : https://github.com/servocoder/RichFilemanager.
938 stars 350 forks source link

How to do with a long list of files #510

Closed kabeda closed 6 years ago

kabeda commented 7 years ago

Hi, I have in one of my folders more than ten thousands of files (Yes more than 10.000 files). When I access with filemanager I got an error. In my log I found this kind of error _PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /home/user/publichtml/filemanager/connectors/php/filemanager.class.php on line 1290

Should it be possible to have paginated list instead of this long list ? I'm using the laravel version of @bestmomo.

simogeo commented 7 years ago

Hi, There is no plan for further development ... If anyone propose a new feature - such as pagination, it will of course be integrated into the trunk (if proposed code is clean). But since RichFilemanager is the new version of the FM I let @servocoder tell you what will happen regarding this.

You can try to allocate more memory, but this not a clean and sustainable solution

psolom commented 7 years ago

Interesting feature request, I will note it and consider later to check the capability for paginated list. It also may be lazy loading list as an option. Will see.

kabeda commented 7 years ago

Hi, In fact, our actual website is using vivvo and in their filepicker (similar as filemanager), they start by saving the listing of the folders in a table in database just after logging in the admin location. Then when the filepicker is requested, they just display the result with pagination.

Hope will serve.

simogeo commented 7 years ago

The approach seems great. I think it should be done in a flat file regarding the (R)FM.