file-uploads

Implement secure file upload pipelines with ClamAV scanning and distributed locks.

783|62|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/dadbodgeoff/drift --skill file-uploads
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file-uploads
Source: https://github.com/dadbodgeoff/drift/tree/main/drift%20v1%20depreciated/skills/file-uploads
Command: npx skills add https://github.com/dadbodgeoff/drift --skill file-uploads

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust and secure pipeline for handling file uploads, ensuring that only safe and valid files are processed, thereby preventing security vulnerabilities and data corruption.

Core Features & Use Cases

  • Multi-stage Validation: Enforces checks for file size, type, content signature, and malware.
  • Malware Scanning: Integrates with ClamAV to detect and block malicious files.
  • Duplicate Detection: Prevents redundant processing of identical files using hash-based checks.
  • Race Condition Protection: Utilizes distributed locks to manage concurrent uploads safely.
  • Use Case: Securely accepting user-submitted documents, images, or other files in a web application, ensuring they are free from threats and duplicates before storage.

Quick Start

Use the file-uploads skill to validate and upload the attached document 'report.pdf'.

Frequently Asked Questions about file-uploads

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

FAQPage Schema
How do I securely handle file uploads in FastAPI?

Secure file uploads in FastAPI require a multi-stage validation pipeline checking file size, type, content signatures, and malware. This approach prevents security vulnerabilities and data corruption by ensuring only safe files are processed and stored.

What is the best way to scan uploaded files for malware in a web application?

Scanning uploaded files for malware is best achieved by integrating ClamAV into your file upload pipeline. This detects and blocks malicious files before they reach storage, ensuring user-submitted documents and images are safe.

How does hash-based duplicate detection work for concurrent file uploads?

Hash-based duplicate detection for concurrent file uploads works by generating a unique hash for each file and using distributed locks. This race condition protection prevents redundant processing of identical files safely during simultaneous submissions.

Can I use this secure file upload pipeline with a TypeScript backend?

Yes, you can use this secure file upload pipeline with a TypeScript backend. The implementation provides support for both Python (FastAPI) and TypeScript backend services, allowing flexible integration across different technology stacks.

Why do I need distributed locks for processing file uploads?

Distributed locks are needed for processing file uploads to prevent race conditions during concurrent submissions. They ensure safe management of simultaneous uploads, preventing data corruption and redundant processing of identical files.