Zdir 3.2.0 Officially Released with Backend Management and Enhanced Features

zdir 3.2.0open source directory listinggolang file managervideo preview playerlightweight web disk
Published·Modified·

Hello Zdir users, Happy New Year 2023. At the same time, our first Zdir version for 2023, 3.2.0, has been released. This version introduces several special features (see below), and we recommend everyone to update.

Overview:

Zdir 3 is a lightweight directory listing program developed with Golang + Vue3. It supports deployment on Linux, Docker, and Windows, and supports previewing common files such as videos, audio, and code. It is suitable for file sharing by individuals or startups and can also be used as a lightweight web disk.

3.2.0 Update Content

  • New: Backend management, currently supporting site settings and password changes.
  • New: Video preview supports calling third-party external players.
  • New: File list pagination support; testing shows no pressure on the frontend even with 10,000 files in a single directory.
  • New: Frontend allows setting default search engines and pagination display count.
  • New: Music playlist support.
  • New: SQLite3 database support.
  • New: Partial backend APIs.
  • New: 404 page.
  • Optimized: Interface optimization and file size optimization.
  • Changed: File upload limit changed to 1GB.
  • Changed: Configuration file logic changed; priority is given to data/config/config.ini, then data/config.ini.
  • Fixed: Fixed a vulnerability and several bugs.

Update Details

Backend Management:

3.2.0 adds backend management. Currently, the backend functions are relatively simple, temporarily supporting only site settings and password changes. More features will be added in the future.

Video Preview Supports Calling Third-Party External Players:

Zdir supports online playback of .mp4 files encoded with H264; other encodings and suffixes are not yet supported. However, do not worry. Starting from version 3.2.0, it supports one-click calling of third-party external players, such as your local PotPlayer.

Note: You must have the corresponding player installed locally (e.g., PotPlayer); otherwise, clicking will have no effect.

File List Pagination Support:

Previously, some users reported that directories with many files were extremely laggy. After investigation, it was found that the frontend component had performance bottlenecks (the Golang backend was under no pressure). Therefore, a frontend pagination solution was adopted. Currently, testing shows that Zdir handles 10,000 files in a single directory without any pressure.

When the number of files in a directory exceeds 50, pagination support is automatically enabled, as shown below:

Music Playlist Support:

Starting from Zdir version 3.2.0, a new music list mode is added. When you enter a directory, if there are audio files in that directory, a music playlist will appear in the bottom left corner of the Zdir WEB page, as shown below.

Now my friends and I can happily listen to music through Zdir.

Demo Address: https://soft.xiaoz.org/#/public/music

404 Page:

When accessing a non-existent route, a 404 page is returned, which is relatively more user-friendly.

Pagination Count / Default Search Settings

There is a settings button in the user frontend navigation bar where you can set the file pagination count and default search method. However, note that this setting is saved only in the browser's local storage and will be lost if you switch browsers.

User-perception-free update features are not listed one by one.

One-Click Upgrade

For Linux users, you can use the following command for a one-click upgrade:

# One-click upgrade Zdir
curl -s "http://soft.xiaoz.org/zdir/sh/upgrade.sh"|bash -s 3.2.0

For other upgrade methods, please refer to the upgrade documentation: https://doc.xiaoz.org/books/zdir-3/chapter/eecca

Other Information