When running DSH Web GUI in remote environments or containers, downloading artifacts typically requires SFTP or SCP, or previewing in the sidebar before saving. The dsh-save-button adds a download button to the delivery card, utilizing the browser’s download manager to write files directly to disk, bypassing the need for extra SFTP/SCP steps.
Plugin Introduction¶
Positioning: Adds a download button to DSH Web GUI delivery cards.
Maintainer: hanbernate.
License: MIT.
This plugin solves the pain points of file transfer during remote access by injecting a download action into the official delivery card. It is entirely based on native browser download mechanisms and relies on no build steps or external libraries.
Installation and Activation¶
- Install the plugin to the web profile:
dsh plugin --profile web add dsh-save-button
- Restart the Web GUI or refresh the browser page for the plugin to take effect.
Usage¶
After installation, a “Download” button appears to the right of the official “Open” button on the delivery card. Each file declared with present corresponds to a download button.
- Download: Clicking it triggers a probe request to confirm file availability, followed by a streamed transfer via the browser’s download manager. The filename is determined by the Host’s
Content-Disposition. - Status Feedback: The interface displays “Preparing download…”, “Download started”, or “Download failed” (click to retry on failure).
- Does not affect official functionality: Clicking the card or “Open” still allows previewing in the sidebar; “Open in default app” and “Open containing folder” in the dropdown menu remain available.
Environment and Limitations¶
- Supported Versions: Only supports the following DSH RC versions:
- 0.1.5-rc.*
- 0.1.7-rc.*
- 0.2.0-rc.*
- 0.2.1-rc.*
- File Source: Only files declared via
presentin the current session can be downloaded. - Zero Dependencies: The plugin has no build steps and no other dependencies.
Uninstallation¶
dsh plugin --profile web remove dsh-save-button
Refreshing the page after uninstallation restores the delivery card to its official rendering state.