Menu Close

Speed up Filebrowser file listing

FileBrowser is a neat program that allows you to access files on your system. You can access, rename, delete, move, and much more right from your browser.

Problem

It is simple, powerful, and working well…except when you are working with thousands of files. When trying to access a directory with thousands of files, FileBrowser takes a lot of times to list them all, sometimes minutes.

But there is something you can do to speed it up which will decrease those minutes to seconds.

Solution

You run filebrowser with these extra parameters:

$ filebrowser --disable-preview-resize --disable-thumbnails --disable-type-detection-by-header --cache-dir /tmp

Docker

For docker, you can add this to your compose file

command: --disable-preview-resize --disable-thumbnails --disable-type-detection-by-header --cache-dir /tmp

My full docker-compose.yml looks like this:

services:
filebrowser:
volumes:
- ./srv:/srv
- /my/cifs/mount:/srv/media-backup
- /my/sshfs/mount:/srv/media-backup-sshfs
- ./database:/database/
- ./config:/config/
environment:
- PUID=1000
- PGID=1000
ports:
- 8080:80
image: filebrowser/filebrowser
command: --disable-preview-resize --disable-thumbnails --disable-type-detection-by-header --cache-dir /tmp

Hope it helps!

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x