Issue Bug Closed

#56746File list always fetches all files in folder

Christian Weiske 03/11/14, 08:22 updated 10/02/18, 12:03

Description

When using the filelist module to list files in a folder of a FAL storage, FileList.php always requests all files at once, even though only 40 are displayed at the same time.

This is problematic if there is a huge number of files in that folder that need to be fetched remotely via an API.

It would be better if at first a call would be made to fetch the number of files in that folder (to make pagination calculation work), and then only request needed files by setting $start and $numberOfItems arguments in getFilesInFolder() correctly.

Happens with TYPO3 6.2beta6.

Reviews 3