hashload/horse/horse-files-streams
Claude Code and agent skill by hashload/horse
- community
Checking that the SKILL.md file is still in the repository.
Guide to handling file uploads (multipart), downloads, and stream lifetime management in the Horse framework.
Install
npx vskill@latest install hashload/horse/horse-files-streamsSKILL.md
The same SKILL.md was published earlier as hashload/horse/horse-files-streams.
Horse Files & Streams
1. File Uploads (Multipart FormData)
When clients upload files via multipart form data, you can retrieve the file as a stream or save it directly to the disk using the THorseCoreParamField helper from Req.ContentFields:
2. File Downloads & Streaming
To send files or custom data streams to the client, use Res.SendFile or Res.Download.
- `SendFile`: Sends the file stream to the client (displays inline in the browser if supported).
- `Download`: Forces the browser to download the file with the specified filename.
3. Critical Memory Rule (Stream Ownership)
The THorseResponse object takes ownership of any stream passed into SendFile, Download, or Render.
- Rule: NEVER call
.FreeorFreeAndNilon a stream after passing it toRes.SendFile,Res.Download, orRes.Render. - Reason: The framework will automatically destroy the stream object once the HTTP response is written to the socket. Freeing it manually in your handler will cause a Double-Free memory corruption (Access Violation) when the response lifecycle terminates.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdoc/skills/horse-files-streams/SKILL.md
Popularity
- Repository stars
- 1,368
- Repository forks
- 244
- 7-day trend score
- 36
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hashload/horse/horse-files-streams)