What problem does it solve?
This skill centralizes and simplifies the implementation of file upload, download, and multipart form handling in Salvo-based Rust web services, reducing boilerplate and ensuring consistent behavior.
Core Features & Use Cases
- Single File Upload: Accepts a single file via multipart/form-data and stores it to a configured destination with proper error handling.
- Multiple File Uploads: Handles multiple files in a single request, storing each securely and returning a summary.
- File Download: Serves files with proper content types and safe path validation, including protected/download with access checks.
- Form with File and Other Fields: Parses form fields alongside file data to support rich forms.
- Use Case: Build an API that lets users upload avatars, documents, or images and retrieve them later.
Quick Start
Configure a Salvo server that accepts file uploads, serves downloads, and parses multipart forms in a secure, scalable way.