Zdir 4.0.2 Update: Added File Creation and Text Editing Functions

Publish: 2024-06-25 | Modify: 2024-06-25

Zdir is a multi-functional private storage program developed using Golang + Vue3, integrating file indexing, online preview, and sharing functions. It supports WebDAV and offline downloading (coming soon), making it ideal for installation on NAS devices or high-capacity VPS for individuals, studios, and small teams to share files.

Zdir 4.0.2 Update

  • Support for creating files
  • Support for text editing
  • New: File description
  • Added /favicon.ico to backend routes for better website icon support
  • Fixed bug where private mode could not switch to public mode after logout
  • If the list is a folder, the capacity is not displayed and changed to -
  • Fixed issue with README.md reading error in private mode
  • Fixed issue on login page where clicking the clear button was ineffective
  • Optimized backend domain protocol retrieval method
  • Changed MxPlayer Pro icon to be read from the backend
  • Route compatibility with Zdir 3.3 redirects to version 4
  • Added operating system detection to backend Linux registration service, only CentOS/Debian/Ubuntu require registration
  • Optimized file creation prompt
  • Some style optimizations

Update Details

Creating Files

The file and folder creation functions are combined by default, with folder creation as the default. If the name ends with .js/.php/.py/.go/.sh/.css/.sql/.txt/.log/.md/.json/.xml/.html/.yml/.yaml, Zdir will consider it a file.

If the file name does not have an extension, a folder is created by default.

82207089b15e5561.png

If the file name contains the specified extensions, a file will be created.

410c7fd906368be1.png

Text Editing

Currently, Zdir supports editing most common text formats. You can edit text files in .js/.php/.py/.go/.sh/.css/.sql/.txt/.log/.md/.json/.xml/.html/.yml/.yaml formats in two ways.

The first way is to right-click on a file with the above extensions when the mouse is over it, and an edit button will appear.

52884bfe3277f02b.png

When previewing a file that supports editing, an edit button will also appear.

a209723a32d64760.png

When the mouse is inside the editing box, you can use the following shortcuts to save the content:

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

8868283032dd19a1.png

File Description

Starting from Zdir 4.0.2, file description functionality is supported. You can add a description for a specific file by creating a file named zdir4.tar.md in the same directory as the file.

525ac34f64ca4368.png

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

5771923cf4a4f48b.png

Upgrade

For users who already have Zdir 4 installed, please refer to the documentation: https://doc.xiaoz.top/web/#/10/59 for upgrading.

For users who have not installed Zdir, please refer to the documentation: https://doc.xiaoz.top/web/#/10/38 for installation.

Conclusion

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

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

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

d9ad2280c4c40c32.png


Comments