salvo-file-handling

Manage file uploads, downloads, and multipart forms in Salvo web applications.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-file-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-file-handling
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-file-handling
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-file-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building web applications often requires repetitive handling for file uploads, downloads, and multipart form data. This skill consolidates that logic into a reusable, secure module to simplify development and reduce boilerplate.

Core Features & Use Cases

  • Upload single and multiple files via multipart/form-data with automatic storage handling and naming
  • Serve file downloads with proper headers, content types, and inline/attachment control
  • Parse and handle form fields alongside file inputs, including validation and error feedback
  • Enforce size limits, content-type checks, and filename sanitization to mitigate common security risks

Quick Start

Configure a Salvo router with upload and download endpoints and run the sample code to see file transfers in action.

Frequently Asked Questions about salvo-file-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle multipart file uploads in a Salvo web application?

Handling multipart file uploads in Salvo involves parsing multipart/form-data to automatically manage storage and naming for single or multiple files. The process also parses standard form fields alongside file inputs, enforcing validation and providing error feedback.

What is the best way to secure file downloads in Salvo?

Securing file downloads in Salvo requires serving files with proper headers, content types, and inline or attachment control. This method ensures safe content delivery while mitigating common security risks associated with file transfers.

How do I enforce size limits and content-type checks for file uploads?

Enforcing size limits and content-type checks for file uploads involves validating input data and applying filename sanitization. This strategy mitigates common security risks and prevents unsafe files from reaching application storage.

Can I process form fields and file inputs simultaneously in Salvo?

Processing form fields and file inputs simultaneously in Salvo is supported through multipart form data handling. This functionality parses mixed data types within a single request, applying validation and error feedback to all inputs.

Why do I need filename sanitization for user file uploads?

Filename sanitization for user file uploads is needed to prevent directory traversal attacks and ensure proper storage separation. This security measure cleans input filenames, mitigating common vulnerabilities associated with untrusted user data.