salvo-file-handling

Handle file uploads, downloads, and multipart forms in Salvo Rust web services.

1|Updated Mar 16, 2024
One-click install
npx skills add https://github.com/tdcare/genies --skill salvo-file-handling-tdcare
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: salvo-file-handling
Source: https://github.com/tdcare/genies/tree/main/.qoder/skills/salvo-file-handling
Command: npx skills add https://github.com/tdcare/genies --skill salvo-file-handling-tdcare

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

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 form data and file uploads in a Rust Salvo web service?▼

Multipart form data and file uploads in Salvo are handled by parsing multipart/form-data requests, storing files to a configured destination, and returning a summary with proper error handling.

Does Salvo support secure file downloads with path validation and access checks?▼

Salvo supports secure file downloads by serving files with proper content types and safe path validation, including protected downloads that require access checks before serving the requested file.

How can I parse additional form fields alongside file data in a Salvo multipart request?▼

You can parse additional form fields alongside file data in a Salvo multipart request to support rich forms, extracting text inputs and file payloads simultaneously from the same submission.

What is the best way to process multiple file uploads in a single Salvo request?▼

The best way to process multiple file uploads in a single Salvo request is by handling each file in the multipart payload, storing them securely, and returning a summary of the uploaded files.

Can I implement file validation and content-type checks for user uploads in Rust Salvo?▼

You can implement file validation and content-type checks for user uploads in Rust Salvo to ensure safe, scalable file management for images, documents, and user uploads across REST endpoints.