dsh-file-transfer: Add Download and Upload Operations to DSH Document Preview

Introduction

In the DSH development workflow, developers often need to directly acquire files or upload assets within document previews or file tree management. The flyhigao/dsh-file-transfer plugin addresses this need by adding native download and upload entries to the document preview toolbar and file rows, eliminating the need for manual export steps.

What is this

This is a client-side plugin maintained by the developer flyhigao. Its core value lies in adding download and upload actions to the DSH document preview toolbar and folder rows, thereby streamlining the file interaction process.

Core Features

  1. Adds download and upload actions to the DSH document preview toolbar and folder rows.
  2. Downloads the current previewed file (folders as ZIP), preserving the original filename.
  3. Uploads files to workspace folders (supports multi-select, non-recursive).
  4. Limits: Total download size < 10 GiB, single file upload < 1 GiB.
  5. Streams uploads to avoid browser memory buffering.
  6. Automatically handles filename conflicts (appends (n) suffix).

Installation and Activation

Install this plugin using the official DSH command:

dsh plugin --profile web add github:flyhigao/dsh-file-transfer

After installation, you need to restart the DSH Web service and refresh the browser page for the plugin to take effect.

Typical Usage

  1. Open a file preview and click the download icon to save the file.
  2. Click the upload icon on a folder row, select files, and confirm the upload.

Notes

  1. Requires DSH Web 0.1.7-rc.2 or a newer version.
  2. The download operation uses DSH’s read-only workspaceFiles remote.
  3. The upload operation is routed via the plugin host, with a limit of 1 GiB per file.
  4. Filename conflicts do not overwrite existing files; instead, an (n) suffix is added (e.g., report(1).txt).
  5. MIT License.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye