Zdir 4.0.2 Update: Adds File Creation and Text Editing Features

Zdirprivate file storagefile sharing softwareNAS file managertext editor
Published·Modified·

Zdir is a versatile private storage program developed using Golang and Vue3. It integrates file indexing, online preview, and sharing functions, supports WebDAV, and will soon support offline downloads. It is ideal for installation on NAS devices or large-capacity VPS, making it a perfect choice for individuals, studios, and small teams to share files.

Zdir 4.0.2 Update Details

  • Support for creating files
  • Support for text editing
  • New: File descriptions
  • Backend route added /favicon.ico for better website icon support
  • Fixed a bug where switching from private to public mode was impossible after logging out in private mode
  • When the list is a folder, capacity is no longer displayed; instead, it shows -
  • Fixed an issue reading README.md in private mode
  • Fixed an issue where the clear button on the login page was unresponsive
  • Optimized the backend method for obtaining domain protocols
  • MxPlayer Pro icon now reads from the backend
  • Routes compatible with Zdir 3 redirect to version 4
  • Backend Linux service registration now includes OS detection, requiring registration only for CentOS/Debian/Ubuntu
  • Optimized file creation prompts
  • Optimized some styles

Detailed Update Explanation

Create Files

The functions for creating files and folders are combined. By default, a folder is created. If the name ends with .js/.php/.py/.go/.sh/.css/.sql/.txt/.log/.md/.json/.xml/.html/.yml/.yaml, Zdir will treat it as a file.

If the filename has no suffix, a folder is created by default.

82207089b15e5561.png

If the filename contains one of the specified suffixes, a file will be created.

410c7fd906368be1.png

Text Editing

Currently, Zdir supports editing most common text formats. You can edit text files with .js/.php/.py/.go/.sh/.css/.sql/.txt/.log/.md/.json/.xml/.html/.yml/.yaml extensions. There are two ways to trigger the editing operation.

The first method is to right-click on files with the above suffixes when hovering the mouse over them; an edit button will appear.

52884bfe3277f02b.png

When previewing a file, if it supports editing, an Edit button will also appear.

a209723a32d64760.png

When the mouse is inside the editing box, the following shortcuts are supported to save content:

  • Windows: Ctrl + S
  • macOS: Command + S

8868283032dd19a1.png

File Descriptions

Starting from Zdir 4.0.2, the file description feature is supported. You can add descriptions for individual files, making it easier for users when sharing files. For example, if your file name is zdir4.tar, you only need to create a file named zdir4.tar.md in the same directory.

525ac34f64ca4368.png

When you open zdir4.tar, the content inside zdir4.tar.md will be displayed automatically. Demo address: https://soft.xiaoz.org/#/zdir/docker/zdir4.tar?type=file

5771923cf4a4f48b.png

Upgrade

Users who have already installed Zdir 4 can refer to the help documentation at https://doc.xiaoz.top/web/#/10/59 for the upgrade process.

Users who have not yet installed Zdir can refer to the help documentation at https://doc.xiaoz.top/web/#/10/38 for installation instructions.

Conclusion

Zdir is a powerful private storage program that meets the file management needs of individuals, studios, and small teams. Developed with a combination of Golang and Vue3, Zdir not only provides basic functions such as file indexing, text editing, online preview, and sharing but also supports WebDAV to further enhance the user experience. Whether you need to manage large-capacity data on NAS devices or share files on a VPS, Zdir is an ideal choice.

For more details, visit our official website, purchase a subscription, or check the demo:

Thank you for your attention and support for Zdir. We look forward to your participation and feedback. If you are interested, you can also scan the QR code to join our WeChat group:

d9ad2280c4c40c32.png