Upload files and folders straight into the conversation — images attach as real message blocks, text content is written into the composer draft, folders land by directory structure.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zhousun55-byte/dsh-postman
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
Mail files and folders straight into the conversation — no workspace copy, no path
juggling. The entry lives in the composer's + command menu (/upload, with two
options: upload files / upload folder), so the tool row stays uncluttered.
Why
- Images attach as real image blocks — PNG/JPG/WebP/GIF (≤5 MiB) go through DSH's native attachment pipeline (composer thumbnails + message image blocks) and are transcribed on the model side by a vision bridge (e.g. modlens) — not just a path string. HEIC and oversized images fall back to path upload automatically.
- Folder upload —
webkitdirectoryuploads a whole directory tree into~/.dsh/uploads/<timestamp>-<folder>/…; text file contents are written straight into the composer draft, so the model sees them immediately. - Zero dependencies, no build step — pure Node built-ins plus DSH's native pipeline.
Features
- Upload files (multi-select):
- Images (PNG/JPG/WebP/GIF, ≤5 MiB) attach as real image blocks through DSH's native attachment pipeline (composer thumbnails + message image blocks), converted on the wire by a vision bridge (e.g. modlens) exactly like pasted images; HEIC and oversized images fall back to path upload.
- Text files → content is written into the composer as an inline code block;
- Other binaries → path + size are injected; the model reads them with
read.
- Upload folder (Chrome
webkitdirectory): stored under~/.dsh/uploads/<timestamp>-<folder>/…with the directory structure preserved; the composer draft receives a file manifest, text previews (≈24k chars total cap), and binary paths. Images inside the folder (up to 12) attach as real images. - The native paste/drag image channel keeps working alongside.
Host half
POST /dsh-postman/upload?name=<file>[&dir=<root>][&rel=<relative-path>]
- Single-file mode (no
dir): stored at~/.dsh/uploads/<timestamp>-<file>; - Folder mode (shared
dirper batch): stored at~/.dsh/uploads/<dir>/<rel>, directories auto-created, name collisions get-2/-3, never overwritten; - 25 MiB per file;
dirmay not contain path separators,relis sanitized segment by segment and drops..; dirs0700, files0600; cross-origin requests rejected; - Envelope:
{ ok: true, value: { name, path, root, size, kind, preview } }— forkind === 'text',previewcarries the first 20k UTF-8 chars.
Install
Add this repository to the Web profile and declare the plugin row (dsh serves the
browser half at /plugins/dsh-postman/client.js by package name):
In
~/.dsh/profiles/web/package.jsonadd"dsh-postman": "link:/path/to/dsh-postman"(or a versioned dependency once published);In
~/.dsh/profiles/web/cordis.patch.ymladd:- insert: - id: ui-upload name: 'dsh-postman'pnpm --dir ~/.dsh/profiles/web install, restartdsh web(client-only changes need just a page refresh).
Self-check
node client.test.cjs # headless client-logic verification (18 assertions)
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8178
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8178
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 3903
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 3815
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 3514
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1711
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.